Condividi tramite


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

'Dichiarazione
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

Return Value

Type: Microsoft.VisualStudio.Modeling.RoleAssignment
RoleAssignment

.NET Framework Security

See Also

Reference

ProtoRolePlayer Class

Microsoft.VisualStudio.Modeling Namespace