MessagePropertyFilter.AuthenticationProviderType Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob beim Einsehen oder beim Empfang einer Meldung die AuthenticationProviderType-Eigenschaft abgerufen wird, oder legt diesen fest.

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

Eigenschaftswert

true, wenn Informationen über den AuthenticationProviderType abgerufen werden, andernfalls false. Der Standardwert ist false.

Attribute

Beispiele

Im folgenden Codebeispiel wird die Verwendung des AuthenticationProviderType-Attributs veranschaulicht.

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

Hinweise

Die AuthenticationProviderType -Eigenschaft der Message -Klasse gibt den Typ des Kryptografieanbieters an, der zum Generieren der digitalen Signatur der Nachricht verwendet wird. AuthenticationProviderType wird in der Regel beim Arbeiten mit ausländischen Warteschlangen verwendet.

Eine fremde Warteschlange ist in einem anderen Warteschlangensystem als Microsoft Message Queuing vorhanden. Microsoft Message Queuing mit solchen Warteschlangen über eine Connectoranwendung kommuniziert.

Gilt für:

Weitere Informationen