UntrustedRecipientException 建構函式

定義

初始化 UntrustedRecipientException 類別的執行個體。Initializes an instance of the UntrustedRecipientException class.

多載

UntrustedRecipientException()

初始化 UntrustedRecipientException 類別的執行個體。Initializes an instance of the UntrustedRecipientException class.

UntrustedRecipientException(String)

使用指定的錯誤訊息,初始化 UntrustedRecipientException 類別的執行個體。Initializes an instance of the UntrustedRecipientException class with the specified error message.

UntrustedRecipientException(SerializationInfo, StreamingContext)

使用序列化的資料,初始化 UntrustedRecipientException 類別的執行個體。Initializes an instance of the UntrustedRecipientException class with serialized data.

UntrustedRecipientException(String, Exception)

使用指定的錯誤訊息以及此例外原因之內部例外狀況的參考,初始化 UntrustedRecipientException 類別的執行個體。Initializes an instance of the UntrustedRecipientException class with the specified error message and a reference to the inner exception that is the cause of this exception.

UntrustedRecipientException()

初始化 UntrustedRecipientException 類別的執行個體。Initializes an instance of the UntrustedRecipientException class.

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

UntrustedRecipientException(String)

使用指定的錯誤訊息,初始化 UntrustedRecipientException 類別的執行個體。Initializes an instance of the UntrustedRecipientException class with the specified error message.

public:
 UntrustedRecipientException(System::String ^ message);
public UntrustedRecipientException (string message);
new System.IdentityModel.Selectors.UntrustedRecipientException : string -> System.IdentityModel.Selectors.UntrustedRecipientException
Public Sub New (message As String)

參數

message
String

描述錯誤的訊息。The message that describes the error.

備註

這個建構函式會將新執行個體的 Message 屬性初始化為系統提供的訊息,該訊息會描述錯誤並考量目前系統的文化特性。This constructor initializes the Message property of the new instance to a system-supplied message that describes the error and takes into account the current system culture. 訊息的內容應該要讓使用者能夠讀懂。The content of the message should be understandable to the user.

UntrustedRecipientException(SerializationInfo, StreamingContext)

使用序列化的資料,初始化 UntrustedRecipientException 類別的執行個體。Initializes an instance of the UntrustedRecipientException class with serialized data.

protected:
 UntrustedRecipientException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected UntrustedRecipientException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.IdentityModel.Selectors.UntrustedRecipientException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IdentityModel.Selectors.UntrustedRecipientException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

SerializationInfo 物件,包含關於將要擲回例外狀況的序列化物件資料。The SerializationInfo object that contains the serialized object data about the exception being thrown.

context
StreamingContext

StreamingContext 物件,包含關於來源或目的端的內容資訊。The StreamingContext object that contains contextual information about the source or destination.

備註

進行還原序列化 (Deserialization) 期間會呼叫這個建構函式,以便重新構成經由資料流傳送的例外狀況物件。This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.

UntrustedRecipientException(String, Exception)

使用指定的錯誤訊息以及此例外原因之內部例外狀況的參考,初始化 UntrustedRecipientException 類別的執行個體。Initializes an instance of the UntrustedRecipientException class with the specified error message and a reference to the inner exception that is the cause of this exception.

public:
 UntrustedRecipientException(System::String ^ message, Exception ^ innerException);
public UntrustedRecipientException (string message, Exception innerException);
new System.IdentityModel.Selectors.UntrustedRecipientException : string * Exception -> System.IdentityModel.Selectors.UntrustedRecipientException
Public Sub New (message As String, innerException As Exception)

參數

message
String

描述錯誤的訊息。The message that describes the error.

innerException
Exception

做為目前例外狀況發生原因的例外狀況。The exception that is the cause of the current exception.

備註

被擲回以做為前一個例外狀況直接結果的例外狀況,應該在 InnerException 屬性中包含對前一個例外狀況的參考。An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. InnerException 屬性會傳回與傳入建構函式中相同的值;如果 null 屬性沒有提供內部例外值給建構函式,則傳回 InnerExceptionThe InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

適用於