Microsoft.Azure.Commands.Batch.Models.BatchClient.GetGroupForAccountNoThrow C# (CSharp) 메소드

GetGroupForAccountNoThrow() 개인적인 메소드

private GetGroupForAccountNoThrow ( string accountName ) : string
accountName string
리턴 string
        internal string GetGroupForAccountNoThrow(string accountName)
        {
            var response = ResourceManagementClient.Resources.List(new Management.Resources.Models.ResourceListParameters()
            {
                ResourceType = accountSearch
            });

            string groupName = null;

            foreach (var res in response.Resources)
            {
                if (res.Name == accountName)
                {
                    groupName = ExtractResourceGroupName(res.Id);
                }
            }

            return groupName;
        }
BatchClient