NamespaceManager.GetQueues Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetQueues() |
Retrieves an enumerable collection of all queues in the service namespace. |
GetQueues(String) |
Retrieves an enumerable collection of all queues in the service namespace with the specified filter. You can filter by a combination of entity name (including starts with), entity length (Gt or Lt), created, updated, and accessed time (Gt or Lt). |
GetQueues()
Retrieves an enumerable collection of all queues in the service namespace.
public System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.QueueDescription> GetQueues ();
member this.GetQueues : unit -> seq<Microsoft.ServiceBus.Messaging.QueueDescription>
Public Function GetQueues () As IEnumerable(Of QueueDescription)
Returns
An IEnumerable<T> object that represents the collection of all queues in the service namespace or returns an empty collection if no queue exists.
Exceptions
The operation times out. The timeout period is initialized through the NamespaceManagerSettings class. You may need to increase the value of the OperationTimeout property to avoid this exception if the timeout value is relatively low.
The NamespaceManager object does not have sufficient permission to perform this operation. You should check to ensure that your NamespaceManager has the correct TokenProvider credentials to perform this operation.
An internal error or unexpected exception occurs.
Applies to
GetQueues(String)
Retrieves an enumerable collection of all queues in the service namespace with the specified filter. You can filter by a combination of entity name (including starts with), entity length (Gt or Lt), created, updated, and accessed time (Gt or Lt).
public System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.QueueDescription> GetQueues (string filter);
member this.GetQueues : string -> seq<Microsoft.ServiceBus.Messaging.QueueDescription>
Public Function GetQueues (filter As String) As IEnumerable(Of QueueDescription)
Parameters
- filter
- String
A string used to filter the queues to be retrieved.
Returns
An IEnumerable<T> object that represents the collection of all queues in the service namespace or returns an empty collection if no queue exists.
Examples
var queuesWithMessages = namespaceManager.GetQueues("messageCount Gt 0");
var queuesStartsWith = namespaceManager.GetQueues($"startswith(path, 'queue') eq true");
Remarks
Filter expression formats: {Propery} {Logical Operator} {Value} AND {Filter expression} {Function} {Logical Operator} {Value} AND {Filter expression} ----------------------------------------------------------------------------------------- Available properties: Path | ModifiedAt | AccessedAt | CreatedAt | MessageCount Logical operators: Eq | Ne | Gt | Ge | Lt | Le Value: A value of the corresponding property type Functions: startswith({Propery}, {Value})
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기