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 обычно используется при работе с иностранными очередями.
Внешняя очередь существует в системе очередей, отличной от очереди сообщений Майкрософт. Очередь сообщений Майкрософт взаимодействует с такими очередями через приложение соединителя.
Применяется к
См. также раздел
Обратная связь
https://aka.ms/ContentUserFeedback.
Ожидается в ближайшее время: в течение 2024 года мы постепенно откажемся от GitHub Issues как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по