Microsoft.WindowsAzure.Management.ServiceManagement.Test.FunctionalTests.ServiceManagementCmdletTestHelper.GetAzureVNetGatewayKey C# (CSharp) 메소드

GetAzureVNetGatewayKey() 공개 메소드

public GetAzureVNetGatewayKey ( string vnetName, string localnet ) : Microsoft.WindowsAzure.Management.ServiceManagement.Model.SharedKeyContext
vnetName string
localnet string
리턴 Microsoft.WindowsAzure.Management.ServiceManagement.Model.SharedKeyContext
        public SharedKeyContext GetAzureVNetGatewayKey(string vnetName, string localnet)
        {
            GetAzureVNetGatewayKeyCmdletInfo getAzureVNetGatewayKeyCmdletInfo = new GetAzureVNetGatewayKeyCmdletInfo(vnetName, localnet);
            WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(getAzureVNetGatewayKeyCmdletInfo);
            Collection<PSObject> result = azurePowershellCmdlet.Run();

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