Projection.TryGetParameterValue

Projection.TryGetParameterValue method

Gets parameter with specified name of this projection. If there are no such parameter - returns null.

public double? TryGetParameterValue(string name, ParameterType type = ParameterType.Other)
ParameterTypeDescription
nameStringName of parameter.
typeParameterTypeType of parameter. Defines unit factor that will be deapplied: if type is Linear then LinearParametersUnit will be deapplied and result will be in meters. if type is Angular then AngularParametersUnit will be deapplied and result will be in radians. if type is Other parameter value will be returned ‘as is’.

Return Value

Parameter with specified name or null if it is not present.

Exceptions

exceptioncondition
ArgumentNullExceptionArgument is null.

See Also