Прочетете на английски Редактиране

Споделяне чрез


UnsupportedPolicyOptionsException Constructors

Definition

Initializes an instance of the UnsupportedPolicyOptionsException class.

Overloads

UnsupportedPolicyOptionsException()

Initializes an instance of the UnsupportedPolicyOptionsException class.

UnsupportedPolicyOptionsException(String)

Initializes an instance of the UnsupportedPolicyOptionsException class with the specified error message.

UnsupportedPolicyOptionsException(SerializationInfo, StreamingContext)

Initializes an instance of the UnsupportedPolicyOptionsException class with the specified serialization information and streaming context.

UnsupportedPolicyOptionsException(String, Exception)

Initializes an instance of the UnsupportedPolicyOptionsException class with the specified error message and the original exception that caused this exception to be thrown.

UnsupportedPolicyOptionsException()

Initializes an instance of the UnsupportedPolicyOptionsException class.

C#
public UnsupportedPolicyOptionsException();

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 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

UnsupportedPolicyOptionsException(String)

Initializes an instance of the UnsupportedPolicyOptionsException class with the specified error message.

C#
public UnsupportedPolicyOptionsException(string message);

Parameters

message
String

The error message.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 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

UnsupportedPolicyOptionsException(SerializationInfo, StreamingContext)

Initializes an instance of the UnsupportedPolicyOptionsException class with the specified serialization information and streaming context.

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

Parameters

info
SerializationInfo

SerializationInfo that holds the serialized object data about the exception that is being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 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

UnsupportedPolicyOptionsException(String, Exception)

Initializes an instance of the UnsupportedPolicyOptionsException class with the specified error message and the original exception that caused this exception to be thrown.

C#
public UnsupportedPolicyOptionsException(string message, Exception innerException);

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The original exception that caused this exception to be thrown.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 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