Finds all elements in the directory of a specified type.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Function FindElements ( _
domainClassId As Guid _
) As ReadOnlyCollection(Of ModelElement)
'使用
Dim instance As IElementDirectory
Dim domainClassId As Guid
Dim returnValue As ReadOnlyCollection(Of ModelElement)
returnValue = instance.FindElements(domainClassId)
ReadOnlyCollection<ModelElement> FindElements(
Guid domainClassId
)
ReadOnlyCollection<ModelElement^>^ FindElements(
Guid domainClassId
)
function FindElements(
domainClassId : Guid
) : ReadOnlyCollection<ModelElement>
Parameters
domainClassId
Type: System.GuidThe ID of the domain class to find.
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<ModelElement>
A read-only collection of the type specified.
Remarks
An empty list is returned if no elements were found.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.