Microsoft.Azure.Commands.Network.NewAzureVirtualNetworkGatewayConnectionSharedKeyCommand.SetVirtualNetworkGatewayConnectionSharedKey C# (CSharp) Method

SetVirtualNetworkGatewayConnectionSharedKey() private method

private SetVirtualNetworkGatewayConnectionSharedKey ( ) : string
return string
        private string SetVirtualNetworkGatewayConnectionSharedKey()
        {
            var vnetGatewayConnectionSharedKey = new PSConnectionSharedKey();
            vnetGatewayConnectionSharedKey.Value = Value;

            // Map to the sdk object
            var vnetGatewayConnectionSharedKeyModel = Mapper.Map<MNM.ConnectionSharedKey>(vnetGatewayConnectionSharedKey);

            // Execute the Set VirtualNetworkConnectionSharedKey call
            this.VirtualNetworkGatewayConnectionClient.SetSharedKey(this.ResourceGroupName, this.Name, vnetGatewayConnectionSharedKeyModel);

            var getVirtualNetworkGatewayConnectionSharedKey = this.GetVirtualNetworkGatewayConnectionSharedKey(this.ResourceGroupName, this.Name);

            return getVirtualNetworkGatewayConnectionSharedKey;
        }
    }
NewAzureVirtualNetworkGatewayConnectionSharedKeyCommand