ListTenants() public méthode

List all tenants for the account in the profile context
public ListTenants ( ) : IEnumerable
Résultat IEnumerable
 protected override void ProcessRecord()
 {
     var profileClient = new RMProfileClient(AzureRmProfileProvider.Instance.Profile);
     
     WriteObject(profileClient.ListTenants(TenantId).Select((t) => (PSAzureTenant)t), enumerateCollection: true);
 }
        public override void ExecuteCmdlet()
        {
            var profileClient = new RMProfileClient(AzureRmProfileProvider.Instance.Profile);

            WriteObject(profileClient.ListTenants(TenantId).Select((t) => (PSAzureTenant)t), enumerateCollection: true);
        }