Class
ProtectionException

Exception thrown when a worksheet or workbook protection constraint is violated.

Definition

Constructors

ProtectionException(string)

Initializes a new ProtectionException with the specified error message.

Declaration

cs-api-definition
public ProtectionException(string message)

Parameters

message

string

The message.

ProtectionException(string, Exception)

Initializes a new ProtectionException wrapping an underlying exception.

Declaration

cs-api-definition
public ProtectionException(string message, Exception innerException)

Parameters

message

string

The message.

innerException

Exception

The inner exception.

ProtectionException(string, Exception, string)

Initializes a new ProtectionException wrapping an inner exception with a localizable message key.

Declaration

cs-api-definition
public ProtectionException(string message, Exception innerException, string key)

Parameters

message

string

The message.

innerException

Exception

The inner exception.

key

string

The key.

ProtectionException(string, string)

Initializes a new ProtectionException with a localizable message key.

Declaration

cs-api-definition
public ProtectionException(string message, string key)

Parameters

message

string

The message.

key

string

The key.