Nevron Open Vision Documentation
Nevron.Nov.Dom Namespace / NElement Class / AssignNextId Method


In This Topic
    AssignNextId Method (NElement)
    In This Topic
    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.
    Syntax
    'Declaration
     
    
    Public Sub AssignNextId( _
       ByVal document As NDocument _
    ) 
    'Usage
     
    
    Dim instance As NElement
    Dim document As NDocument
     
    instance.AssignNextId(document)
    public void AssignNextId( 
       NDocument document
    )

    Parameters

    document
    Requirements

    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)

    See Also