Show / Hide Table of Contents

Class ParameterValidator

Logic for validating a parameter.

Inheritance
object
ParameterValidator
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Requests.Parameters
Assembly: Google.Apis.Core.dll
Syntax
public static class ParameterValidator

Methods

ValidateParameter(IParameter, string)

Validates if a parameter is valid.

Declaration
[Obsolete("Use the overload with error output instead")]
public static bool ValidateParameter(IParameter parameter, string value)
Parameters
Type Name Description
IParameter parameter
string value
Returns
Type Description
bool

ValidateParameter(IParameter, string, out string)

Validates if a parameter is valid.

Declaration
public static bool ValidateParameter(IParameter parameter, string value, out string error)
Parameters
Type Name Description
IParameter parameter
string value
string error
Returns
Type Description
bool

ValidateRegex(IParameter, string)

Validates a parameter value against the methods regex.

Declaration
[Obsolete("Use ValidateParameter instead")]
public static bool ValidateRegex(IParameter param, string paramValue)
Parameters
Type Name Description
IParameter param
string paramValue
Returns
Type Description
bool
In this article
Back to top Generated by DocFX