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

RemoveAzureVNetGateway() public method

public RemoveAzureVNetGateway ( string vnetName ) : Microsoft.WindowsAzure.Management.Model.ManagementOperationContext
vnetName string
return Microsoft.WindowsAzure.Management.Model.ManagementOperationContext
        public ManagementOperationContext RemoveAzureVNetGateway(string vnetName)
        {
            GetAzureVNetGatewayKeyCmdletInfo a = new GetAzureVNetGatewayKeyCmdletInfo("aaa", "vvv");

            RemoveAzureVNetGatewayCmdletInfo removeAzureVNetGatewayCmdletInfo = new RemoveAzureVNetGatewayCmdletInfo(vnetName);
            WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(removeAzureVNetGatewayCmdletInfo);
            Collection<PSObject> result = azurePowershellCmdlet.Run();

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