System.Security.HostProtectionException Members

The members of System.Security.HostProtectionException are listed below.

See Also: Inherited members from System.SystemException

Public Constructors

Initializes a new instance of the System.Security.HostProtectionException class with default values.

Initializes a new instance of the System.Security.HostProtectionException class with a specified error message.

Initializes a new instance of the System.Security.HostProtectionException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Initializes a new instance of the System.Security.HostProtectionException class with a specified error message, the protected host resources, and the host resources that caused the exception to be thrown.

Protected Constructors

Initializes a new instance of the System.Security.HostProtectionException class using the provided serialization information and streaming context.

Public Properties

[read-only]
DemandedResourcesSystem.Security.Permissions.HostProtectionResource.

Gets or sets the demanded host protection resources that caused the exception to be thrown.

[read-only]
ProtectedResourcesSystem.Security.Permissions.HostProtectionResource.

Gets or sets the host protection resources that are inaccessible to partially trusted code.

Public Methods

override
GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Sets the specified System.Runtime.Serialization.SerializationInfo object with information about the host protection exception.

override
ToString() : string

Returns a string representation of the current host protection exception.