Udostępnij przez


MessagePropertyFilter.AuthenticationProviderName Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy pobierać AuthenticationProviderName informacje o właściwości podczas odbierania lub podglądu komunikatu.

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

Wartość właściwości

true aby otrzymywać AuthenticationProviderName informacje; w przeciwnym razie false. Wartość domyślna to false.

Atrybuty

Przykłady

Poniższy przykład kodu przedstawia użycie AuthenticationProviderName właściwości.

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

Uwagi

Właściwość AuthenticationProviderNameMessage klasy określa nazwę dostawcy kryptograficznego używanego do generowania podpisu cyfrowego komunikatu. Message.AuthenticationProviderName 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ż