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

SetAzureVNetConfig() public method

public SetAzureVNetConfig ( string filePath ) : ManagementOperationContext
filePath string
return ManagementOperationContext
        public ManagementOperationContext SetAzureVNetConfig(string filePath)
        {
            SetAzureVNetConfigCmdletInfo setAzureVNetConfigCmdletInfo = new SetAzureVNetConfigCmdletInfo(filePath);
            WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(setAzureVNetConfigCmdletInfo);
            Collection<PSObject> result = azurePowershellCmdlet.Run();

            if (result.Count == 1)
            {
                return (ManagementOperationContext) result[0].BaseObject;
            }
            return null;
        }
ServiceManagementCmdletTestHelper