ActorTypeInformation.TryGet(Type, ActorTypeInformation) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates the ActorTypeInformation from actorType.
public static bool TryGet (Type actorType, out Microsoft.ServiceFabric.Actors.Runtime.ActorTypeInformation actorTypeInformation);
static member TryGet : Type * ActorTypeInformation -> bool
Public Shared Function TryGet (actorType As Type, ByRef actorTypeInformation As ActorTypeInformation) As Boolean
Parameters
- actorType
- Type
The type of class implementing the actor to create ActorTypeInforamtion for.
- actorTypeInformation
- ActorTypeInformation
When this method returns, contains ActorTypeInformation, if the creation of ActorTypeInformation from actorType succeeded, or null if the creation failed. The creation fails if the actorType parameter is null or it does not implement an actor.
Returns
true if ActorTypeInformation was successfully created for actorType; otherwise, false.
Remarks
Creation of ActorTypeInformation from actorType will fail when
1. BaseType for actorType is not of type Actor.
2. actorType does not implement an interface deriving from IActor and is not marked as abstract.
3. actorType implements more than one interface which derives from IActor but doesn't have ActorServiceAttribute.
Applies to
Azure SDK for .NET