Partager via


ActorTypeInformation.Get(Type) Méthode

Définition

Crée un ActorTypeInformation à partir de 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

Paramètres

actorType
Type

Type de classe implémentant l’acteur pour lequel créer ActorTypeInforamtion.

Retours

ActorTypeInformation créé à partir de actorType.

Exceptions

Quand BaseType pour actorType n’est pas de type Actor.

Quand actorType n’implémente pas d’interface dérivant de IActor et n’est pas marqué comme abstrait.

Quand actorType implémente plusieurs interface qui dérive de IActor mais n’a ActorServiceAttributepas .

S’applique à