Bagikan melalui


MessagePropertyFilter.AuthenticationProviderType Properti

Definisi

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

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

Nilai Properti

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

Atribut

Contoh

Contoh kode berikut menunjukkan penggunaan AuthenticationProviderType properti .

// Set the queue's MessageReadPropertyFilter property 
// to enable the message's 
// AuthenticationProviderType property.
queue->MessageReadPropertyFilter->
    AuthenticationProviderType = 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 
// AuthenticationProviderType property.
Console::WriteLine(
    "Message.AuthenticationProviderType: {0}", 
    orderMessage->AuthenticationProviderType);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's AuthenticationProviderType property.
queue.MessageReadPropertyFilter.AuthenticationProviderType = 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 AuthenticationProviderType
// property.
Console.WriteLine("Message.AuthenticationProviderType: {0}",
    orderMessage.AuthenticationProviderType);

Keterangan

Properti AuthenticationProviderType kelas Message menentukan jenis penyedia kriptografi yang digunakan untuk menghasilkan tanda tangan digital pesan. AuthenticationProviderType 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