Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Gets or creates the linked element collection
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Protected Shared Function GetRoleCollection(Of TCollection As ReadOnlyLinkedElementCollection(Of TElement), TElement As ModelElement) ( _
modelElement As ModelElement, _
domainRoleId As Guid _
) As TCollection
protected static TCollection GetRoleCollection<TCollection, TElement>(
ModelElement modelElement,
Guid domainRoleId
)
where TCollection : ReadOnlyLinkedElementCollection<TElement>
where TElement : ModelElement
protected:
generic<typename TCollection, typename TElement>
where TCollection : ReadOnlyLinkedElementCollection<TElement>
where TElement : ModelElement
static TCollection GetRoleCollection(
ModelElement^ modelElement,
Guid domainRoleId
)
static member GetRoleCollection :
modelElement:ModelElement *
domainRoleId:Guid -> 'TCollection when 'TCollection : ReadOnlyLinkedElementCollection<'TElement> when 'TElement : ModelElement
JScript does not support generic types or methods.
Type Parameters
- TCollection
The collection type to instanciate
- TElement
The type for each of the elements in the collection
Parameters
modelElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe source role player
domainRoleId
Type: GuidThe role id
Return Value
Type: TCollection
.NET Framework Security
- 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.