Partilhar via


RoleAssignment.CreatePlaceholderRoleAssignment Method

Creates a role assignment placeholder.

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

Syntax

'Declaração
Public Shared Function CreatePlaceholderRoleAssignment ( _
    domainRoleId As Guid _
) As RoleAssignment
public static RoleAssignment CreatePlaceholderRoleAssignment(
    Guid domainRoleId
)
public:
static RoleAssignment^ CreatePlaceholderRoleAssignment(
    Guid domainRoleId
)
static member CreatePlaceholderRoleAssignment : 
        domainRoleId:Guid -> RoleAssignment 
public static function CreatePlaceholderRoleAssignment(
    domainRoleId : Guid
) : RoleAssignment

Parameters

  • domainRoleId
    Type: System.Guid
    The ID of the domain role.

Return Value

Type: Microsoft.VisualStudio.Modeling.RoleAssignment
The role assignment created as a temporary placeholder that will be replaced.

Remarks

This is a special factory method that creates a role assignment used as a placeholder. The assignment will not contain valid model element or moniker.

This method is used in special cases, such as serialization to create a temporary role assignment, which will be replaced by a valid one later.

.NET Framework Security

See Also

Reference

RoleAssignment Class

Microsoft.VisualStudio.Modeling Namespace