This documentation is archived and is not being maintained.

TfsMessageQueueService::CreateQueue Method (Uri, Int32, TimeSpan, Func<SoapException, Exception>)

Creates an object which may be used to dequeue messages from the specified queue.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

public:
TfsMessageQueue^ CreateQueue(
	Uri^ queueId, 
	int maxPendingCount, 
	TimeSpan maxAcknowledgementDelay, 
	Func<SoapException^, Exception^>^ convertException
)

Parameters

queueId
Type: System::Uri

The queue identifier

maxPendingCount
Type: System::Int32
maxAcknowledgementDelay
Type: System::TimeSpan
convertException
Type: System::Func<SoapException, Exception>

An optional callback to convert a SoapException to a strongly typed exception

Return Value

Type: Microsoft.TeamFoundation.Framework.Client::TfsMessageQueue
An object for dequeuing messages from the server

Show: