Microsoft.Azure.Commands.Profile.SetAzureRMEnvironmentCommand.SetEndpointIfProvided C# (CSharp) Method

SetEndpointIfProvided() private method

private SetEndpointIfProvided ( Microsoft.Azure.Common.Authentication.Models.AzureEnvironment newEnvironment, Microsoft.Azure.Common.Authentication.Models.AzureEnvironment endpoint, string property ) : void
newEnvironment Microsoft.Azure.Common.Authentication.Models.AzureEnvironment
endpoint Microsoft.Azure.Common.Authentication.Models.AzureEnvironment
property string
return void
        private void SetEndpointIfProvided(AzureEnvironment newEnvironment, AzureEnvironment.Endpoint endpoint, string property)
        {
            if (!string.IsNullOrEmpty(property))
            {
                newEnvironment.Endpoints[endpoint] = property;
            }
        }
    }