包含在 ElementLink 上需要设置角色扮演者数据的数据。
继承层次结构
System.Object
Microsoft.VisualStudio.Modeling.ProtoRolePlayer
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
<SerializableAttribute> _
Public NotInheritable Class ProtoRolePlayer _
Implements ISerializable
[SerializableAttribute]
public sealed class ProtoRolePlayer : ISerializable
ProtoRolePlayer 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
ProtoRolePlayer | 构造函数 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
DomainRoleId | 获取 DomainRoleId 的 GUID。 |
![]() |
Ordinals | 获取 int 序号。 |
![]() |
RolePlayerId | 获取 RolePlayerId Guid。 |
![]() |
RolePlayerMonikerId | 获取 RolePlayerId Guid。 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
CreateRoleAssignment | 为正创建链接中的 rolePlayer 创建 RoleAssignment。如果 idDictionary 不包含用于重建的 rolePlayer 的 ID,并且 CanUseExistingRolePlayer 方法返回 true, 则请使用生成该 ProtoRolePlayer 原始 rolePlayer 。 |
![]() |
Equals | 确定指定的对象是否等于当前对象。 (继承自 Object。) |
![]() |
GetHashCode | 作为默认哈希函数。 (继承自 Object。) |
![]() |
GetObjectData | 呈现 ProtoRolePlayer 数据以序列化 |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。