Partager via


ServiceActivationFailedException Constructors

Definition

Overloads

ServiceActivationFailedException(ServiceMoniker, Exception)

Initializes a new instance of the ServiceActivationFailedException class.

ServiceActivationFailedException(SerializationInfo, StreamingContext)

Initializes a new instance of the ServiceActivationFailedException class.

ServiceActivationFailedException(ServiceMoniker, Exception)

Initializes a new instance of the ServiceActivationFailedException class.

public:
 ServiceActivationFailedException(Microsoft::ServiceHub::Framework::ServiceMoniker ^ serviceMoniker, Exception ^ inner);
public ServiceActivationFailedException (Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Exception? inner);
new Microsoft.ServiceHub.Framework.ServiceActivationFailedException : Microsoft.ServiceHub.Framework.ServiceMoniker * Exception -> Microsoft.ServiceHub.Framework.ServiceActivationFailedException
Public Sub New (serviceMoniker As ServiceMoniker, inner As Exception)

Parameters

serviceMoniker
ServiceMoniker

The moniker of the service that failed to activate.

inner
Exception

The exception thrown from the service during activation.

Applies to

ServiceActivationFailedException(SerializationInfo, StreamingContext)

Initializes a new instance of the ServiceActivationFailedException class.

protected:
 ServiceActivationFailedException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ServiceActivationFailedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.ServiceHub.Framework.ServiceActivationFailedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.ServiceHub.Framework.ServiceActivationFailedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

Seralization info.

context
StreamingContext

Serialization context.

Applies to