ProtoRolePlayer.CreateRoleAssignment 方法

为正创建链接中的 rolePlayer 创建 RoleAssignment。 如果 idDictionary 不包含用于重建的 rolePlayer 的 ID,并且 CanUseExistingRolePlayer 方法返回 true, 则请使用生成该 ProtoRolePlayer 原始 rolePlayer 。

命名空间:  Microsoft.VisualStudio.Modeling
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

语法

声明
Public Function CreateRoleAssignment ( _
    idDictionary As Dictionary(Of Guid, Guid), _
    partition As Partition _
) As RoleAssignment
public RoleAssignment CreateRoleAssignment(
    Dictionary<Guid, Guid> idDictionary,
    Partition partition
)

参数

返回值

类型:Microsoft.VisualStudio.Modeling.RoleAssignment
RoleAssignment

.NET Framework 安全性

请参阅

参考

ProtoRolePlayer 类

Microsoft.VisualStudio.Modeling 命名空间