Share via


UnknownServiceException Constructors

Definition

Initializes a new UnknownServiceException object.

Overloads

UnknownServiceException()

Initializes a new UnknownServiceException object.

UnknownServiceException(Exception)

Initializes a new UnknownServiceException object by specifying an inner exception that caused the current exception.

UnknownServiceException(String)

Initializes a new UnknownServiceException object by specifying the error message that describes the current exception.

UnknownServiceException(SerializationInfo, StreamingContext)

Initializes a new UnknownServiceException object with serialized data.

UnknownServiceException(String, Exception)

Initializes a new UnknownServiceException object with an error message and inner exception.

UnknownServiceException()

Initializes a new UnknownServiceException object.

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

Applies to

UnknownServiceException(Exception)

Initializes a new UnknownServiceException object by specifying an inner exception that caused the current exception.

public:
 UnknownServiceException(Exception ^ inner);
public UnknownServiceException (Exception inner);
new Microsoft.EnterpriseManagement.Common.UnknownServiceException : Exception -> Microsoft.EnterpriseManagement.Common.UnknownServiceException
Public Sub New (inner As Exception)

Parameters

inner
Exception

The Exception instance that caused the current exception.

Applies to

UnknownServiceException(String)

Initializes a new UnknownServiceException object by specifying the error message that describes the current exception.

public:
 UnknownServiceException(System::String ^ message);
public UnknownServiceException (string message);
new Microsoft.EnterpriseManagement.Common.UnknownServiceException : string -> Microsoft.EnterpriseManagement.Common.UnknownServiceException
Public Sub New (message As String)

Parameters

message
String

The error message that describes the current exception.

Applies to

UnknownServiceException(SerializationInfo, StreamingContext)

Initializes a new UnknownServiceException object with serialized data.

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

Parameters

info
SerializationInfo

The SerializationInfo object that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext object that contains contextual information about the source or destination.

Applies to

UnknownServiceException(String, Exception)

Initializes a new UnknownServiceException object with an error message and inner exception.

public:
 UnknownServiceException(System::String ^ message, Exception ^ inner);
public UnknownServiceException (string message, Exception inner);
new Microsoft.EnterpriseManagement.Common.UnknownServiceException : string * Exception -> Microsoft.EnterpriseManagement.Common.UnknownServiceException
Public Sub New (message As String, inner As Exception)

Parameters

message
String

The error message that describes the current exception.

inner
Exception

The Exception instance that caused the current exception.

Applies to