TfsMessageQueue.Dequeue 方法 (TimeSpan, TfsDequeueContext%)
清除佇列從佇列接收訊息。 呼叫端為指定逾時的最長持續時間將會被封鎖。
命名空間: Microsoft.TeamFoundation.Framework.Client
組件: Microsoft.TeamFoundation.Client (在 Microsoft.TeamFoundation.Client.dll 中)
語法
'宣告
Public Function Dequeue ( _
timeout As TimeSpan, _
<OutAttribute> ByRef context As TfsDequeueContext _
) As Boolean
public bool Dequeue(
TimeSpan timeout,
out TfsDequeueContext context
)
參數
- timeout
類型:System.TimeSpan
最長時間等待接收訊息
- context
類型:Microsoft.TeamFoundation.Framework.Client.TfsDequeueContext%
為處理和認可訊息的內容。如果這個值為 null,則傳回值為 true 時,訊息佇列關閉。
傳回值
類型:System.Boolean
如果呼叫,則在指定的逾時,則會傳回 true;則為,否則為 false。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱 從部分受信任程式碼使用程式庫。