Partager via


RequestChecker Class

 

Contains methods that check whether a parameter is valid and, if a parameter is not valid, report violations.

Namespace:   Microsoft.WindowsServerSolutions.WebApi.Framework
Assembly:  Wssg.WebApi.Framework (in Wssg.WebApi.Framework.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsServerSolutions.WebApi.Framework.RequestChecker

Syntax

public static class RequestChecker
public ref class RequestChecker abstract sealed 
Public NotInheritable Class RequestChecker

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static Check(String, String, String, Func<String, Boolean>)

Checks whether the parameter is valid by using a validator delegate.

System_CAPS_pubmethodSystem_CAPS_static CheckEnum<T>(String, String)

Checks whether the value is equal to a valid member of an enumeration.

System_CAPS_pubmethodSystem_CAPS_static CheckInRange(String, String, Int32, Int32)

Checks whether the parameter is in the required Int32 range.

System_CAPS_pubmethodSystem_CAPS_static CheckInRange(String, String, Int64, Int64)

Checks whether the parameter is in the required Int64 range.

System_CAPS_pubmethodSystem_CAPS_static CheckIsBoolean(String, String)

Checks whether the parameter is a valid Boolean value.

System_CAPS_pubmethodSystem_CAPS_static CheckIsGuid(String, String)

Checks whether the parameter is a valid GUID.

System_CAPS_pubmethodSystem_CAPS_static CheckIsGuidList(String, String)

Checks whether a parameter is a GUID list.

System_CAPS_pubmethodSystem_CAPS_static CheckIsInteger(String, String)

Checks whether the parameter is an integer.

System_CAPS_pubmethodSystem_CAPS_static CheckIsLong(String, String)

Checks whether the parameter is a long integer.

System_CAPS_pubmethodSystem_CAPS_static CheckIsNonNegativeInteger(String, String)

Checks whether the parameter is a nonnegative integer.

System_CAPS_pubmethodSystem_CAPS_static CheckIsNotNull(String, Object)

Checks whether the parameter is not null.

System_CAPS_pubmethodSystem_CAPS_static CheckIsNotNullOrEmpty(String, String)

Checks whether the parameter is not null or empty.

System_CAPS_pubmethodSystem_CAPS_static CheckIsPositiveInteger(String, String)

Checks whether the parameter is a positive integer.

System_CAPS_pubmethodSystem_CAPS_static CheckIsValidSecurityIdentifier(String, String)

Checks whether the parameter is a valid security identifier value.

System_CAPS_pubmethodSystem_CAPS_static ReportViolation(String, String, HttpStatusCode)

Reports a violation by throwing a System.ServiceModel.Web.WebFaultException.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsServerSolutions.WebApi.Framework Namespace

Return to top