Прочитать на английском Изменить

Поделиться через


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();

See also

Applies to

.NET Framework 4.8.1 и другие версии
Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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(string m);

Parameters

m
String

The message that describes the error.

See also

Applies to

.NET Framework 4.8.1 и другие версии
Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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);

Parameters

errorCode
CmdLineError

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

culture
CultureInfo

Culture-specific information.

See also

Applies to

.NET Framework 4.8.1 и другие версии
Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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);

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

.NET Framework 4.8.1 и другие версии
Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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(string m, Exception e);

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

.NET Framework 4.8.1 и другие версии
Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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, string context, System.Globalization.CultureInfo culture);

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

.NET Framework 4.8.1 и другие версии
Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1