Class ParameterValidator (1.59.0)

public static class ParameterValidator

Logic for validating a parameter.

Inheritance

Object > ParameterValidator

Namespace

Google.Apis.Requests.Parameters

Assembly

Google.Apis.Core.dll

Methods

ValidateParameter(IParameter, String)

[Obsolete("Use the overload with error output instead")]
public static bool ValidateParameter(IParameter parameter, string value)

Validates if a parameter is valid.

Parameters
NameDescription
parameterIParameter
valueString
Returns
TypeDescription
Boolean

ValidateParameter(IParameter, String, out String)

public static bool ValidateParameter(IParameter parameter, string value, out string error)

Validates if a parameter is valid.

Parameters
NameDescription
parameterIParameter
valueString
errorString
Returns
TypeDescription
Boolean

ValidateRegex(IParameter, String)

[Obsolete("Use ValidateParameter instead")]
public static bool ValidateRegex(IParameter param, string paramValue)

Validates a parameter value against the methods regex.

Parameters
NameDescription
paramIParameter
paramValueString
Returns
TypeDescription
Boolean