次の方法で共有


TrustNotGrantedException Constructors

Definition

Initializes a new instance of the TrustNotGrantedException class.

Overloads

TrustNotGrantedException()

Initializes a new instance of the TrustNotGrantedException class with a system-supplied message that describes the error.

TrustNotGrantedException(String)

Initializes a new instance of the TrustNotGrantedException class with a specified message that describes the error.

TrustNotGrantedException(SerializationInfo, StreamingContext)

Initializes a new instance of the TrustNotGrantedException class with serialized data.

TrustNotGrantedException(String, Exception)

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

TrustNotGrantedException()

Initializes a new instance of the TrustNotGrantedException class with a system-supplied message that describes the error.

public:
 TrustNotGrantedException();
public TrustNotGrantedException ();
Public Sub New ()

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "DefaultMessageDisplayedByParameterlessCtorWriterMustSupply" This message takes into account the current system culture.

The following table shows the initial property values for an instance of InsufficientMemoryException.

Property Value
InnerException null.
Message The localized error message string.

Applies to

TrustNotGrantedException(String)

Initializes a new instance of the TrustNotGrantedException class with a specified message that describes the error.

public:
 TrustNotGrantedException(System::String ^ message);
public TrustNotGrantedException (string message);
new System.Deployment.Application.TrustNotGrantedException : string -> System.Deployment.Application.TrustNotGrantedException
Public Sub New (message As String)

Parameters

message
String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Remarks

The following table shows the initial property values for an instance of TrustNotGrantedException.

Property Value
InnerException null.
Message The error message string specified in message.

Applies to

TrustNotGrantedException(SerializationInfo, StreamingContext)

Initializes a new instance of the TrustNotGrantedException class with serialized data.

protected:
 TrustNotGrantedException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected TrustNotGrantedException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Deployment.Application.TrustNotGrantedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Deployment.Application.TrustNotGrantedException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Parameters

serializationInfo
SerializationInfo

The object that holds the serialized object data.

streamingContext
StreamingContext

The contextual information about the source or destination.

Applies to

TrustNotGrantedException(String, Exception)

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

public:
 TrustNotGrantedException(System::String ^ message, Exception ^ innerException);
public TrustNotGrantedException (string message, Exception innerException);
new System.Deployment.Application.TrustNotGrantedException : string * Exception -> System.Deployment.Application.TrustNotGrantedException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

innerException
Exception

The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Applies to