TeamFoundationMessageQueueService.EnqueueMessage Method
Enqueues a message into a message queue.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Sub EnqueueMessage ( _
requestContext As TeamFoundationRequestContext, _
queueName As String, _
message As Message _
)
public void EnqueueMessage(
TeamFoundationRequestContext requestContext,
string queueName,
Message message
)
public:
void EnqueueMessage(
TeamFoundationRequestContext^ requestContext,
String^ queueName,
Message^ message
)
member EnqueueMessage :
requestContext:TeamFoundationRequestContext *
queueName:string *
message:Message -> unit
public function EnqueueMessage(
requestContext : TeamFoundationRequestContext,
queueName : String,
message : Message
)
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context
queueName
Type: System.StringThe name of the queue
message
Type: System.ServiceModel.Channels.MessageThe message to enqueue
Exceptions
Exception | Condition |
---|---|
AccessCheckException | If the caller does not have Enqueue permission for the specified message queue |
MessageQueueNotFoundException | If the specified message queue does not exist |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.