IElementDirectory.ContainsElement Method

Gets whether an element with the specified ID is in the directory.

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

Syntax

'Declaration
Function ContainsElement ( _
    elementId As Guid _
) As Boolean
'Usage
Dim instance As IElementDirectory 
Dim elementId As Guid 
Dim returnValue As Boolean 

returnValue = instance.ContainsElement(elementId)
bool ContainsElement(
    Guid elementId
)
bool ContainsElement(
    Guid elementId
)
function ContainsElement(
    elementId : Guid
) : boolean

Parameters

  • elementId
    Type: System.Guid

    The ID of the element to be checked.

Return Value

Type: System.Boolean
true if the element is in the store; otherwise, false.

.NET Framework Security

See Also

Reference

IElementDirectory Interface

IElementDirectory Members

Microsoft.VisualStudio.Modeling Namespace