Freigeben über


IElementDirectory.GetElement Method

Gets a particular element.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
Function GetElement ( _
    elementId As Guid _
) As ModelElement
ModelElement GetElement(
    Guid elementId
)
ModelElement^ GetElement(
    Guid elementId
)
abstract GetElement : 
        elementId:Guid -> ModelElement
function GetElement(
    elementId : Guid
) : ModelElement

Parameters

  • elementId
    Type: System.Guid

    The ID of the element to be retrieved.

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement
A ModelElement object.

Remarks

If the element is not found, an exception is thrown.

.NET Framework Security

See Also

Reference

IElementDirectory Interface

Microsoft.VisualStudio.Modeling Namespace