Прочитај на енглеском Уреди

Делите путем


JScriptException Constructors

Definition

Initializes a new instance of the JScriptException class.

Overloads

JScriptException()

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

Initializes a new instance of the JScriptException class.

JScriptException(JSError)

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

Initializes a new instance of the JScriptException class, using the specified JSError.

JScriptException(String)

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

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

JScriptException(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 JScriptException class, using the specified serialized data.

JScriptException(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 JScriptException class, using the specified error message and a reference to the inner exception that is the cause of this exception.

JScriptException()

Initializes a new instance of the JScriptException class.

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

C#
public JScriptException();

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

JScriptException(JSError)

Initializes a new instance of the JScriptException class, using the specified JSError.

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

C#
public JScriptException(Microsoft.JScript.JSError errorNumber);

Parameters

errorNumber
JSError

One of the enumeration values. The value specifies the error.

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

JScriptException(String)

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

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

C#
public JScriptException(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

JScriptException(SerializationInfo, StreamingContext)

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

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

C#
protected JScriptException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info
SerializationInfo

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

context
StreamingContext

Contextual information about the source or destination.

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

JScriptException(String, Exception)

Initializes a new instance of the JScriptException 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.

C#
public JScriptException(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.

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