다음을 통해 공유


ActorId Class

Definition

The ActorId represents the identity of an actor within an actor service. This is used to identify the partition of the actor service inside which the actor will run, see GetPartitionKey()

[System.Runtime.Serialization.DataContract(Name="ActorId")]
public sealed class ActorId : IComparable<Microsoft.ServiceFabric.Actors.ActorId>, IEquatable<Microsoft.ServiceFabric.Actors.ActorId>
[<System.Runtime.Serialization.DataContract(Name="ActorId")>]
type ActorId = class
    interface IEquatable<ActorId>
    interface IComparable<ActorId>
Public NotInheritable Class ActorId
Implements IComparable(Of ActorId), IEquatable(Of ActorId)
Inheritance
ActorId
Attributes
Implements

Constructors

ActorId(Guid)

Initializes a new instance of the ActorId class with Id value of type Guid.

ActorId(Int64)

Initializes a new instance of the ActorId class with Id value of type Int64.

ActorId(String)

Initializes a new instance of the ActorId class with Id value of type String.

Properties

Kind

Gets the ActorIdKind for the ActorId.

Methods

CompareTo(ActorId)

Compares this instance with a specified ActorId object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified actorId.

CreateRandom()

Create a new instance of the ActorId of kind Long with a random Int64 id value.

Equals(ActorId)

Determines whether this instance and another specified ActorId object have the same value.

Equals(Object)

Determines whether this instance and a specified object, which must also be a ActorId object, have the same value. Overrides Equals(Object).

GetGuidId()

Gets id for ActorId whose ActorIdKind is Guid.

GetHashCode()

Overrides GetHashCode().

GetLongId()

Gets id for ActorId whose ActorIdKind is Long.

GetPartitionKey()

Gets the partition key for this ActorId.

GetStringId()

Gets id for ActorId whose ActorIdKind is String.

ToString()

Overrides ToString().

Operators

Equality(ActorId, ActorId)

Determines whether two specified actorIds have the same id and ActorIdKind.

Inequality(ActorId, ActorId)

Determines whether two specified actorIds have different values for id and ActorIdKind.

Applies to