Share via


MessagePropertyFilter.AuthenticationProviderName Vlastnost

Definice

Získá nebo nastaví hodnotu, která označuje, zda načíst AuthenticationProviderName informace o vlastnosti při přijetí nebo náhledu zprávy.

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

Hodnota vlastnosti

true k příjmu AuthenticationProviderName informací; falsev opačném případě . Výchozí formát je false.

Atributy

Příklady

Následující příklad kódu ukazuje použití AuthenticationProviderName vlastnosti.

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

Poznámky

Vlastnost AuthenticationProviderNameMessage třídy určuje název kryptografického zprostředkovatele použitého k vygenerování digitálního podpisu zprávy. Message.AuthenticationProviderName se obvykle používá při práci s cizími frontami.

Cizí fronta existuje v systému řazení front, který není službou Microsoft Message Queuing. Microsoft Message Queuing komunikuje s těmito frontami prostřednictvím aplikace konektoru.

Platí pro

Viz také