MessagePropertyFilter.AuthenticationProviderType Свойство

Определение

Получает или задает значение, указывающее, следует ли извлекать сведения свойства AuthenticationProviderType при получении или считывании сообщения.

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

Значение свойства

Значение true означает получение сведений AuthenticationProviderType, в противном случае — значение false. Значение по умолчанию — false.

Атрибуты

Примеры

В следующем примере кода демонстрируется использование 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);
// 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);

Комментарии

Свойство AuthenticationProviderTypeMessage класса указывает тип поставщика шифрования, используемого для создания цифровой подписи сообщения. AuthenticationProviderType обычно используется при работе с иностранными очередями.

Внешняя очередь существует в системе очередей, отличной от очереди сообщений Майкрософт. Очередь сообщений Майкрософт взаимодействует с такими очередями через приложение соединителя.

Применяется к

См. также раздел