Microsoft.Azure.Commands.Common.Authentication.Models.AzureSubscription.GetPropertyAsArray C# (CSharp) Method

GetPropertyAsArray() public method

public GetPropertyAsArray ( System.Property property ) : string[]
property System.Property
return string[]
        public string[] GetPropertyAsArray(Property property)
        {
            return Properties.GetPropertyAsArray(property);
        }

Usage Example

コード例 #1
0
 public PSAzureSubscription(AzureSubscription subscription, AzureSMProfile profile)
 {
     SubscriptionId = subscription.Id.ToString();
     SubscriptionName = subscription.Name;
     Environment = subscription.Environment;
     DefaultAccount = subscription.Account;
     Accounts = profile.Accounts.Values.Where(a => a.HasSubscription(subscription.Id)).ToArray();
     IsDefault = subscription.IsPropertySet(AzureSubscription.Property.Default);
     IsCurrent = profile.Context != null && profile.Context.Subscription.Id == subscription.Id;
     CurrentStorageAccountName = subscription.GetProperty(AzureSubscription.Property.StorageAccount);
     TenantId = subscription.GetPropertyAsArray(AzureSubscription.Property.Tenants).FirstOrDefault();
 }
All Usage Examples Of Microsoft.Azure.Commands.Common.Authentication.Models.AzureSubscription::GetPropertyAsArray