Aracılığıyla paylaş


ActorTypeInformation.Get(Type) Method

Definition

Creates an ActorTypeInformation from actorType.

public static Microsoft.ServiceFabric.Actors.Runtime.ActorTypeInformation Get (Type actorType);
static member Get : Type -> Microsoft.ServiceFabric.Actors.Runtime.ActorTypeInformation
Public Shared Function Get (actorType As Type) As ActorTypeInformation

Parameters

actorType
Type

The type of class implementing the actor to create ActorTypeInforamtion for.

Returns

ActorTypeInformation created from actorType.

Exceptions

When BaseType for actorType is not of type Actor.

When actorType does not implement an interface deriving from IActor and is not marked as abstract.

When actorType implements more than one interface which derives from IActor but doesn't have ActorServiceAttribute.

Applies to