Editar

Partilhar via


CmdLineException Constructors

Definition

Initializes a new instance of the CmdLineException class.

Overloads

CmdLineException()

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the CmdLineException class.

CmdLineException(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the CmdLineException class, using the specified error message.

CmdLineException(CmdLineError, CultureInfo)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the CmdLineException class, using the specified error code and culture information.

CmdLineException(SerializationInfo, StreamingContext)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the CmdLineException class, using serialized data.

CmdLineException(String, Exception)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the CmdLineException class, using the specified error message and a reference to the inner exception that is the cause of this exception.

CmdLineException(CmdLineError, String, CultureInfo)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the CmdLineException class, using the specified error code, context, and culture information.

CmdLineException()

Initializes a new instance of the CmdLineException class.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

See also

Applies to

CmdLineException(String)

Initializes a new instance of the CmdLineException class, using the specified error message.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 CmdLineException(System::String ^ m);
public CmdLineException (string m);
new Microsoft.JScript.CmdLineException : string -> Microsoft.JScript.CmdLineException
Public Sub New (m As String)

Parameters

m
String

The message that describes the error.

See also

Applies to

CmdLineException(CmdLineError, CultureInfo)

Initializes a new instance of the CmdLineException class, using the specified error code and culture information.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 CmdLineException(Microsoft::JScript::CmdLineError errorCode, System::Globalization::CultureInfo ^ culture);
public CmdLineException (Microsoft.JScript.CmdLineError errorCode, System.Globalization.CultureInfo culture);
new Microsoft.JScript.CmdLineException : Microsoft.JScript.CmdLineError * System.Globalization.CultureInfo -> Microsoft.JScript.CmdLineException
Public Sub New (errorCode As CmdLineError, culture As CultureInfo)

Parameters

errorCode
CmdLineError

One of the enumeration values. Specifies what the error is.

culture
CultureInfo

Culture-specific information.

See also

Applies to

CmdLineException(SerializationInfo, StreamingContext)

Initializes a new instance of the CmdLineException class, using serialized data.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 CmdLineException(System::Runtime::Serialization::SerializationInfo ^ s, System::Runtime::Serialization::StreamingContext c);
protected CmdLineException (System.Runtime.Serialization.SerializationInfo s, System.Runtime.Serialization.StreamingContext c);
new Microsoft.JScript.CmdLineException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.JScript.CmdLineException
Protected Sub New (s As SerializationInfo, c As StreamingContext)

Parameters

s
SerializationInfo

The serialized object data about the exception that is being thrown.

c
StreamingContext

Contextual information about the source or destination.

See also

Applies to

CmdLineException(String, Exception)

Initializes a new instance of the CmdLineException class, using the specified error message and a reference to the inner exception that is the cause of this exception.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 CmdLineException(System::String ^ m, Exception ^ e);
public CmdLineException (string m, Exception e);
new Microsoft.JScript.CmdLineException : string * Exception -> Microsoft.JScript.CmdLineException
Public Sub New (m As String, e As Exception)

Parameters

m
String

The message that describes the error.

e
Exception

The exception that is the cause of the current exception, or null if no inner exception is specified.

See also

Applies to

CmdLineException(CmdLineError, String, CultureInfo)

Initializes a new instance of the CmdLineException class, using the specified error code, context, and culture information.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 CmdLineException(Microsoft::JScript::CmdLineError errorCode, System::String ^ context, System::Globalization::CultureInfo ^ culture);
public CmdLineException (Microsoft.JScript.CmdLineError errorCode, string context, System.Globalization.CultureInfo culture);
new Microsoft.JScript.CmdLineException : Microsoft.JScript.CmdLineError * string * System.Globalization.CultureInfo -> Microsoft.JScript.CmdLineException
Public Sub New (errorCode As CmdLineError, context As String, culture As CultureInfo)

Parameters

errorCode
CmdLineError

One of the enumeration values. Specifies what the error is.

context
String

The context in which the error occurred.

culture
CultureInfo

Culture-specific information.

See also

Applies to