MessagePropertyFilter.AuthenticationProviderType Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy pobierać AuthenticationProviderType informacje o właściwości podczas odbierania lub przeglądania komunikatu.

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

Wartość właściwości

true w celu otrzymywania AuthenticationProviderType informacji; falsew przeciwnym razie . Wartość domyślna to false.

Atrybuty

Przykłady

W poniższym przykładzie kodu pokazano użycie AuthenticationProviderType właściwości .

// 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);

Uwagi

Właściwość AuthenticationProviderTypeMessage klasy określa typ dostawcy kryptograficznego używanego do generowania podpisu cyfrowego wiadomości. AuthenticationProviderType jest zwykle używany podczas pracy z kolejkami obcymi.

Kolejka zagraniczna istnieje w systemie kolejkowania innym niż kolejkowanie komunikatów firmy Microsoft. Kolejkowanie komunikatów firmy Microsoft komunikuje się z takimi kolejkami za pośrednictwem aplikacji łącznika.

Dotyczy

Zobacz też