共用方式為


ProtoRolePlayer Class

Contains the data necessary to set the role player data on an ElementLink.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.ProtoRolePlayer

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

Syntax

'宣告
<SerializableAttribute> _
Public NotInheritable Class ProtoRolePlayer _
    Implements ISerializable
[SerializableAttribute]
public sealed class ProtoRolePlayer : ISerializable
[SerializableAttribute]
public ref class ProtoRolePlayer sealed : ISerializable
[<Sealed>]
[<SerializableAttribute>]
type ProtoRolePlayer =  
    class
        interface ISerializable
    end
public final class ProtoRolePlayer implements ISerializable

The ProtoRolePlayer type exposes the following members.

Constructors

  Name Description
Public method ProtoRolePlayer Constructor

Top

Properties

  Name Description
Public property DomainRoleId Gets the DomainRoleId Guid.
Public property Ordinals Gets the int Ordinal.
Public property RolePlayerId Gets the RolePlayerId Guid.
Public property RolePlayerMonikerId Gets the RolePlayerMonikerId Guid.

Top

Methods

  Name Description
Public method CreateRoleAssignment 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.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetObjectData Renders ProtoRolePlayer data for serialization
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace