Class ParameterValidator (1.68.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
Name Description
parameter IParameter
value string
Returns
Type Description
bool

ValidateParameter(IParameter, string, out string)

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

Validates if a parameter is valid.

Parameters
Name Description
parameter IParameter
value string
error string
Returns
Type Description
bool

ValidateRegex(IParameter, string)

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

Validates a parameter value against the methods regex.

Parameters
Name Description
param IParameter
paramValue string
Returns
Type Description
bool