Partager via


RoleAssignment.CreatePlaceholderRoleAssignment(Guid) Method

Definition

Special factory method to create a placeholder RoleAssignment. The assignment will contain no valid ModelElement/Moniker. It is used in special cases like serialization to create a temporary role assignment, which will then be replaced by a valid one later.

public:
 static Microsoft::VisualStudio::Modeling::RoleAssignment ^ CreatePlaceholderRoleAssignment(Guid domainRoleId);
[System.Diagnostics.DebuggerStepThrough]
public static Microsoft.VisualStudio.Modeling.RoleAssignment CreatePlaceholderRoleAssignment (Guid domainRoleId);
[<System.Diagnostics.DebuggerStepThrough>]
static member CreatePlaceholderRoleAssignment : Guid -> Microsoft.VisualStudio.Modeling.RoleAssignment
Public Shared Function CreatePlaceholderRoleAssignment (domainRoleId As Guid) As RoleAssignment

Parameters

domainRoleId
Guid

The Id of domain role being assigned.

Returns

The created place-holder RoleAssignment.

Attributes

Applies to