Bagikan melalui


MessagePropertyFilter.AuthenticationProviderName Properti

Definisi

Mendapatkan atau menetapkan nilai yang menunjukkan apakah akan mengambil AuthenticationProviderName informasi properti saat menerima atau mengintip pesan.

public:
 property bool AuthenticationProviderName { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgAuthenticationProviderName")]
public bool AuthenticationProviderName { get; set; }
[<System.Messaging.MessagingDescription("MsgAuthenticationProviderName")>]
member this.AuthenticationProviderName : bool with get, set
Public Property AuthenticationProviderName As Boolean

Nilai Properti

true untuk menerima AuthenticationProviderName informasi; jika tidak, false. Default adalah false.

Atribut

Contoh

Contoh kode berikut menunjukkan penggunaan AuthenticationProviderName properti .

// Set the queue's MessageReadPropertyFilter property 
// to enable the message's 
// AuthenticationProviderName property.
queue->MessageReadPropertyFilter->
    AuthenticationProviderName = true;

// Peek at the message. Time out after ten seconds 
// in case the message was not delivered.
orderMessage = queue->Peek(TimeSpan::FromSeconds(10.0));

// Display the value of the message's 
// AuthenticationProviderName property.
Console::WriteLine(
    "Message.AuthenticationProviderName: {0}", 
    orderMessage->AuthenticationProviderName);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's AuthenticationProviderName property.
queue.MessageReadPropertyFilter.AuthenticationProviderName = true;

// Peek at the message. Time out after ten seconds in case the message
// was not delivered.
orderMessage = queue.Peek(TimeSpan.FromSeconds(10.0));

// Display the value of the message's AuthenticationProviderName
// property.
Console.WriteLine("Message.AuthenticationProviderName: {0}",
    orderMessage.AuthenticationProviderName);

Keterangan

Properti AuthenticationProviderName kelas Message menentukan nama penyedia kriptografi yang digunakan untuk menghasilkan tanda tangan digital pesan. Message.AuthenticationProviderName biasanya digunakan saat bekerja dengan antrean asing.

Antrean asing ada dalam sistem antrean selain Antrean Pesan Microsoft. Antrean Pesan Microsoft berkomunikasi dengan antrean tersebut melalui aplikasi konektor.

Berlaku untuk

Lihat juga