AssignNextId Method (NElement)
Assigns the next document Id to this element. Use this method to generate an element Id, before it is registered in the specified document. Throws an expection if the element is already added to a document or the provided document is null. When an element Id is assigned to an element, it is a resposibility of the caller to ensure that the element is added to the elements subtree of the document for which the id was assigned.
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)