Exemplo n.º 1
0
 public override void ExecuteCmdlet()
 {
     // get the current virtual network rule
     if (string.IsNullOrEmpty(Name))
     {
         WriteObject(DataLakeStoreClient.ListVirtualNetworkRules(Account)
                     .Select(element => new DataLakeStoreVirtualNetworkRule(element))
                     .ToList(), true);
     }
     else
     {
         WriteObject(new DataLakeStoreVirtualNetworkRule(DataLakeStoreClient.GetVirtualNetworkRule(Account, Name)));
     }
 }