ProtoRolePlayer.CreateRoleAssignment Method
Creates a RoleAssignment for the rolePlayer in the link that is being created. If the idDictionary does not contain an id for the reconstituted rolePlayer, use the original rolePlayer from which this ProtoRolePlayer was created, if CanUseExistingRolePlayer method returns true.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Déclaration
Public Function CreateRoleAssignment ( _
idDictionary As Dictionary(Of Guid, Guid), _
partition As Partition _
) As RoleAssignment
public RoleAssignment CreateRoleAssignment(
Dictionary<Guid, Guid> idDictionary,
Partition partition
)
public:
RoleAssignment^ CreateRoleAssignment(
Dictionary<Guid, Guid>^ idDictionary,
Partition^ partition
)
member CreateRoleAssignment :
idDictionary:Dictionary<Guid, Guid> *
partition:Partition -> RoleAssignment
public function CreateRoleAssignment(
idDictionary : Dictionary<Guid, Guid>,
partition : Partition
) : RoleAssignment
Parameters
- idDictionary
Type: System.Collections.Generic.Dictionary<Guid, Guid>
Map from the original element ID's to the clone element ID's
- partition
Type: Microsoft.VisualStudio.Modeling.Partition
The partition in which the link is being created (the source role player's partition)
Return Value
Type: Microsoft.VisualStudio.Modeling.RoleAssignment
RoleAssignment
.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.