你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BatchClient.ListAccounts(Hashtable, String) 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.
Lists all accounts in a subscription or in a resource group if its name is specified
public virtual System.Collections.Generic.IEnumerable<Microsoft.Azure.Commands.Batch.BatchAccountContext> ListAccounts (System.Collections.Hashtable tag, string resourceGroupName = default);
abstract member ListAccounts : System.Collections.Hashtable * string -> seq<Microsoft.Azure.Commands.Batch.BatchAccountContext>
override this.ListAccounts : System.Collections.Hashtable * string -> seq<Microsoft.Azure.Commands.Batch.BatchAccountContext>
Public Overridable Function ListAccounts (tag As Hashtable, Optional resourceGroupName As String = Nothing) As IEnumerable(Of BatchAccountContext)
Parameters
- tag
- Hashtable
The tag to filter accounts on
- resourceGroupName
- String
The name of the resource group to search under for accounts. If unspecified, all accounts will be looked up.
Returns
A collection of BatchAccountContext objects