Show / Hide Table of Contents

Class ParameterValidator

Logic for validating a parameter.

Inheritance
System.Object
ParameterValidator
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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
System.String value
Returns
Type Description
System.Boolean

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
System.String value
System.String error
Returns
Type Description
System.Boolean

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
System.String paramValue
Returns
Type Description
System.Boolean
In This Article
Back to top