Partager via


RolePlayerPropertyDescriptor.BuildElementList Method (Object, Boolean)

Build a list of the valid role players for this property value of the specified component.

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

Syntax

'Declaration
Protected Function BuildElementList ( _
    component As Object, _
    includeDescendents As Boolean _
) As IList(Of ModelElement)
protected IList<ModelElement> BuildElementList(
    Object component,
    bool includeDescendents
)
protected:
IList<ModelElement^>^ BuildElementList(
    Object^ component, 
    bool includeDescendents
)
member BuildElementList : 
        component:Object * 
        includeDescendents:bool -> IList<ModelElement> 
protected function BuildElementList(
    component : Object, 
    includeDescendents : boolean
) : IList<ModelElement>

Parameters

  • component
    Type: System.Object

    The represented element, or null to use the stored represented element when in instance mode

  • includeDescendents
    Type: System.Boolean

    Whether to include derived types for the domain role

Return Value

Type: System.Collections.Generic.IList<ModelElement>
List of ModelElements that could be chosen as the role player for the property

Remarks

Derived RolePlayerPropertyDescriptors should call this base method to build the initial candidate list in order to propertly take account of IMS locks.

.NET Framework Security

See Also

Reference

RolePlayerPropertyDescriptor Class

BuildElementList Overload

Microsoft.VisualStudio.Modeling.Design Namespace