TeamFoundationMessageQueueService.CreateQueue Method
Creates a new message queue.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Sub CreateQueue ( _
requestContext As TeamFoundationRequestContext, _
queueName As String, _
description As String _
)
public void CreateQueue(
TeamFoundationRequestContext requestContext,
string queueName,
string description
)
public:
void CreateQueue(
TeamFoundationRequestContext^ requestContext,
String^ queueName,
String^ description
)
member CreateQueue :
requestContext:TeamFoundationRequestContext *
queueName:string *
description:string -> unit
public function CreateQueue(
requestContext : TeamFoundationRequestContext,
queueName : String,
description : String
)
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context
queueName
Type: System.StringThe name of the message queue
description
Type: System.StringAn optional description of the message queue
Exceptions
Exception | Condition |
---|---|
AccessCheckException | If the caller does not have Create permission for the message queue security namespace |
MessageQueueAlreadyExistsException | If a message queue already exists with the specified name |
.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.