Freigeben über


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

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

See Also

Reference

TeamFoundationMessageQueueService Class

Microsoft.TeamFoundation.Framework.Server Namespace