CmdLineException 构造函数
定义
初始化 CmdLineException 类的新实例。Initializes a new instance of the CmdLineException class.
重载
| CmdLineException() |
此 API 支持产品基础结构,不能在代码中直接使用。 初始化 CmdLineException 类的新实例。Initializes a new instance of the CmdLineException class. |
| CmdLineException(String) |
此 API 支持产品基础结构,不能在代码中直接使用。 使用指定的错误消息初始化 CmdLineException 类的新实例。Initializes a new instance of the CmdLineException class, using the specified error message. |
| CmdLineException(CmdLineError, CultureInfo) |
此 API 支持产品基础结构,不能在代码中直接使用。 使用指定的错误代码和区域性信息初始化 CmdLineException 类的新实例。Initializes a new instance of the CmdLineException class, using the specified error code and culture information. |
| CmdLineException(SerializationInfo, StreamingContext) |
此 API 支持产品基础结构,不能在代码中直接使用。 使用序列化数据初始化 CmdLineException 类的新实例。Initializes a new instance of the CmdLineException class, using serialized data. |
| CmdLineException(String, Exception) |
此 API 支持产品基础结构,不能在代码中直接使用。 使用指定错误消息和对作为此异常原因的内部异常的引用来初始化 CmdLineException 类的新实例。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) |
此 API 支持产品基础结构,不能在代码中直接使用。 使用指定的错误代码、上下文和区域性信息初始化 CmdLineException 类的新实例。Initializes a new instance of the CmdLineException class, using the specified error code, context, and culture information. |
CmdLineException()
初始化 CmdLineException 类的新实例。Initializes a new instance of the CmdLineException class.
此 API 支持产品基础结构,不能在代码中直接使用。
public:
CmdLineException();
public CmdLineException ();
Public Sub New ()
另请参阅
适用于
CmdLineException(String)
使用指定的错误消息初始化 CmdLineException 类的新实例。Initializes a new instance of the CmdLineException class, using the specified error message.
此 API 支持产品基础结构,不能在代码中直接使用。
public:
CmdLineException(System::String ^ m);
public CmdLineException (string m);
new Microsoft.JScript.CmdLineException : string -> Microsoft.JScript.CmdLineException
Public Sub New (m As String)
参数
- m
- String
描述错误的消息。The message that describes the error.
另请参阅
适用于
CmdLineException(CmdLineError, CultureInfo)
使用指定的错误代码和区域性信息初始化 CmdLineException 类的新实例。Initializes a new instance of the CmdLineException class, using the specified error code and culture information.
此 API 支持产品基础结构,不能在代码中直接使用。
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)
参数
- errorCode
- CmdLineError
枚举值之一。One of the enumeration values. 指定发生了什么错误。Specifies what the error is.
- culture
- CultureInfo
特定于区域性的信息。Culture-specific information.
另请参阅
适用于
CmdLineException(SerializationInfo, StreamingContext)
使用序列化数据初始化 CmdLineException 类的新实例。Initializes a new instance of the CmdLineException class, using serialized data.
此 API 支持产品基础结构,不能在代码中直接使用。
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)
参数
有关所引发异常的序列化对象数据。The serialized object data about the exception that is being thrown.
有关源或目标的上下文信息。Contextual information about the source or destination.
另请参阅
适用于
CmdLineException(String, Exception)
使用指定错误消息和对作为此异常原因的内部异常的引用来初始化 CmdLineException 类的新实例。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.
此 API 支持产品基础结构,不能在代码中直接使用。
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)
参数
- m
- String
描述错误的消息。The message that describes the error.
作为当前异常原因的异常,如果没有指定内部异常,则为 null。The exception that is the cause of the current exception, or null if no inner exception is specified.
另请参阅
适用于
CmdLineException(CmdLineError, String, CultureInfo)
使用指定的错误代码、上下文和区域性信息初始化 CmdLineException 类的新实例。Initializes a new instance of the CmdLineException class, using the specified error code, context, and culture information.
此 API 支持产品基础结构,不能在代码中直接使用。
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)
参数
- 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.