Düzenle

Aracılığıyla paylaş


ServiceActivationException Constructors

Definition

Initializes a new instance of the ServiceActivationException class.

Overloads

ServiceActivationException()

Initializes a new instance of the ServiceActivationException class.

ServiceActivationException(String)

Initializes a new instance of the ServiceActivationException class with a specified error message.

ServiceActivationException(SerializationInfo, StreamingContext)

Initializes a new instance of the ServiceActivationException class with serialization information and streaming context specified.

ServiceActivationException(String, Exception)

Initializes a new instance of the ServiceActivationException class with a specified error message and the inner exception provided.

ServiceActivationException()

Source:
ServiceActivationException.cs
Source:
ServiceActivationException.cs
Source:
ServiceActivationException.cs

Initializes a new instance of the ServiceActivationException class.

public:
 ServiceActivationException();
public ServiceActivationException ();
Public Sub New ()

Applies to

ServiceActivationException(String)

Source:
ServiceActivationException.cs
Source:
ServiceActivationException.cs
Source:
ServiceActivationException.cs

Initializes a new instance of the ServiceActivationException class with a specified error message.

public:
 ServiceActivationException(System::String ^ message);
public ServiceActivationException (string message);
new System.ServiceModel.ServiceActivationException : string -> System.ServiceModel.ServiceActivationException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

Remarks

Use this constructor when you want to pass an error message to the user. The content of the message parameter should be understandable to the user. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Applies to

ServiceActivationException(SerializationInfo, StreamingContext)

Source:
ServiceActivationException.cs
Source:
ServiceActivationException.cs
Source:
ServiceActivationException.cs

Initializes a new instance of the ServiceActivationException class with serialization information and streaming context specified.

protected:
 ServiceActivationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ServiceActivationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.ServiceActivationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.ServiceActivationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo that contains all the data required to serialize the exception.

context
StreamingContext

The StreamingContext that specifies the source and destination of the stream.

Remarks

This constructor is called during deserialization to reconstruct the exception object transmitted over a stream.

Applies to

ServiceActivationException(String, Exception)

Source:
ServiceActivationException.cs
Source:
ServiceActivationException.cs
Source:
ServiceActivationException.cs

Initializes a new instance of the ServiceActivationException class with a specified error message and the inner exception provided.

public:
 ServiceActivationException(System::String ^ message, Exception ^ innerException);
public ServiceActivationException (string message, Exception innerException);
new System.ServiceModel.ServiceActivationException : string * Exception -> System.ServiceModel.ServiceActivationException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The Exception that caused the current exception to be thrown.

Remarks

Use this constructor when you want to pass an error message and information about an inner exception up to the user.

An exception that is thrown as a direct result of a previous exception can include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or a null reference (Nothing in Visual Basic) if the InnerException property does not supply the inner exception value to the constructor.

Applies to