MessagePropertyFilter.AuthenticationProviderName Propriedade

Definição

Recebe ou define um valor que indica se deve recuperar AuthenticationProviderName informação de propriedade ao receber ou espreitar uma mensagem.

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

Valor de Propriedade

true para receber AuthenticationProviderName informação; caso contrário, false. A predefinição é false.

Atributos

Exemplos

O seguinte exemplo de código demonstra a utilização da AuthenticationProviderName propriedade.

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

Observações

A AuthenticationProviderName propriedade da Message classe especifica o nome do fornecedor criptográfico utilizado para gerar a assinatura digital da mensagem. Message.AuthenticationProviderName é tipicamente usado ao trabalhar com filas estrangeiras.

Existe uma fila estrangeira num sistema de fila diferente do Microsoft Message Queuing. A Microsoft Message Queuing comunica com essas filas através de uma aplicação conector.

Aplica-se a

Ver também