다음을 통해 공유


ServiceTypeInformation.TryGet(Type, ServiceTypeInformation) Method

Definition

Gets the Factory method that constructs a ServiceTypeInformation object from the given type.

public static bool TryGet (Type serviceType, out Microsoft.ServiceFabric.Services.Remoting.Runtime.ServiceTypeInformation serviceTypeInformation);
static member TryGet : Type * ServiceTypeInformation -> bool
Public Shared Function TryGet (serviceType As Type, ByRef serviceTypeInformation As ServiceTypeInformation) As Boolean

Parameters

serviceType
Type

Type to examine

serviceTypeInformation
ServiceTypeInformation

The constructed ServiceTypeInformation

Returns

true if the specified serviceType is a service, false otherwise

Applies to