Microsoft.WindowsAzure.Management.ServiceManagement.Test.FunctionalTests.ServiceManagementCmdletTestHelper.GetAzureVNetConfig C# (CSharp) Method

GetAzureVNetConfig() public method

public GetAzureVNetConfig ( string filePath ) : Collection
filePath string
return Collection
        public Collection<VirtualNetworkConfigContext> GetAzureVNetConfig(string filePath)
        {
            GetAzureVNetConfigCmdletInfo getAzureVNetConfigCmdletInfo = new GetAzureVNetConfigCmdletInfo(filePath);
            WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(getAzureVNetConfigCmdletInfo);
            Collection<PSObject> result = azurePowershellCmdlet.Run();

            Collection<VirtualNetworkConfigContext> vnetGateways = new Collection<VirtualNetworkConfigContext>();
            foreach (PSObject re in result)
            {
                vnetGateways.Add((VirtualNetworkConfigContext)re.BaseObject);
            }
            return vnetGateways;
        }
ServiceManagementCmdletTestHelper