AuthLevel
MSMQMessage

The AuthLevel property specifies whether the message must be authenticated when it arrives at the target queue.

Type: Long
Run time: read/write

Syntax

object.AuthLevel
 
Syntax Element Description
object Message (MSMQMessage) object that defines the queue.

Settings

Set AuthLevel to one of the following values:

MQMSG_AUTH_LEVEL_NONE
The default. The message does not have to be authenticated when it arrives at the target queue.
MQMSG_AUTH_LEVEL_ALWAYS
The message must be authenticated when it arrives at the target queue.

Remarks

This property is only used when sending messages. Messages are authenticated by MSMQ, not by the receiving application.

In addition to messages, queues also have an authentication level. The queue's Authenticate property specifies whether the queue accepts only authenticated messages.

QuickInfo

  Windows NT: Requires version 4.0 SP3 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in mqoai.h.
  Import Library: Use mqoa.lib.
  Unicode: Defined only as Unicode.