Class ParameterValidator (1.50.0)

public static class ParameterValidator : object

Logic for validating a parameter.

Inheritance

Object > ParameterValidator

Namespace

Google.Apis.Requests.Parameters

Assembly

Google.Apis.Core.dll

Methods

ValidateParameter(IParameter, String)

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)

public static bool ValidateRegex(IParameter param, string paramValue)

Validates a parameter value against the methods regex.

Parameters
NameDescription
paramIParameter
paramValueString
Returns
TypeDescription
Boolean