Sdílet prostřednictvím


InvalidRequestException Constructors

Definition

Overloads

InvalidRequestException()

Initializes a new instance of the InvalidRequestException class.

InvalidRequestException(String)

Initializes a new instance of the InvalidRequestException class using the specified message.

InvalidRequestException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidRequestException class using the specified information and context.

InvalidRequestException(String, Exception)

Initializes a new instance of the InvalidRequestException class using the specified message and inner exception.

InvalidRequestException()

Initializes a new instance of the InvalidRequestException class.

public InvalidRequestException ();
Public Sub New ()

Applies to

InvalidRequestException(String)

Initializes a new instance of the InvalidRequestException class using the specified message.

public InvalidRequestException (string message);
new Microsoft.ServiceBus.InvalidRequestException : string -> Microsoft.ServiceBus.InvalidRequestException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

InvalidRequestException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidRequestException class using the specified information and context.

protected InvalidRequestException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.ServiceBus.InvalidRequestException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.ServiceBus.InvalidRequestException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

Holds the serialized object data about the exception being thrown.

context
StreamingContext

Contains contextual information about the source or destination.

Applies to

InvalidRequestException(String, Exception)

Initializes a new instance of the InvalidRequestException class using the specified message and inner exception.

public InvalidRequestException (string message, Exception innerException);
new Microsoft.ServiceBus.InvalidRequestException : string * Exception -> Microsoft.ServiceBus.InvalidRequestException
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 is the cause of the current exception, or null if no inner exception is specified.

Applies to