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.Gets or sets a value that indicates whether to retrieve AuthenticationProviderType property information when receiving or peeking a message.

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

Boolean

true para receber AuthenticationProviderType informações; caso contrário, false .true to receive AuthenticationProviderType information; otherwise, false. O padrão é false.The default is false.

Atributos

Exemplos

O exemplo de código a seguir demonstra o uso da AuthenticationProviderType propriedade.The following code example demonstrates the use of the AuthenticationProviderType property.

// 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.The AuthenticationProviderType property of the Message class specifies the type of cryptographic provider used to generate the digital signature of the message. AuthenticationProviderType normalmente é usado ao trabalhar com filas estrangeiras.AuthenticationProviderType is typically used when working with foreign queues.

Uma fila estrangeira existe em um sistema de enfileiramento diferente do enfileiramento de mensagens da Microsoft.A foreign queue exists in a queuing system other than Microsoft Message Queuing. O enfileiramento de mensagens da Microsoft comunica-se com essas filas por meio de um aplicativo de conector.Microsoft Message Queuing communicates with such queues through a connector application.

Aplica-se a

Confira também