Share via


MessagePropertyFilter.AuthenticationProviderType Propriedade

Definição

Obtém ou define um valor que indica se é necessário recuperar informações de propriedade de AuthenticationProviderType ao receber ou espiar uma mensagem.

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

Valor da propriedade

true para receber AuthenticationProviderType informações; caso contrário, false. O padrão é false.

Atributos

Exemplos

O exemplo de código a seguir demonstra o uso da AuthenticationProviderType propriedade .

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

Comentários

A AuthenticationProviderType propriedade da Message classe especifica o tipo de provedor criptográfico usado para gerar a assinatura digital da mensagem. AuthenticationProviderType normalmente é usado ao trabalhar com filas estrangeiras.

Existe uma fila estrangeira em um sistema de enfileiramento diferente do Enfileiramento de Mensagens da Microsoft. O Enfileiramento de Mensagens da Microsoft se comunica com essas filas por meio de um aplicativo conector.

Aplica-se a

Confira também