共用方式為


MsmqMessage<T>.Authenticated 屬性

定義

取得布林值 (Boolean),這個值會指出是否已驗證訊息。

public:
 property Nullable<bool> Authenticated { Nullable<bool> get(); };
public bool? Authenticated { get; }
member this.Authenticated : Nullable<bool>
Public ReadOnly Property Authenticated As Nullable(Of Boolean)

屬性值

Nullable<Boolean>

如果訊息已驗證,則為 true,否則為 false

範例

if (message.Authenticated == true)
    Console.WriteLine("Message was authenticated");
If message.Authenticated = True Then
    Console.WriteLine("Message was authenticated")
End If

備註

當寄件者要求驗證,或將訊息傳送至設定成要求驗證的訊息佇列時,訊息就會進行驗證。

適用於