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)

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

public ref class RequestChecker abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCheck(String^, String^, String^, Func<String^, Boolean>^)

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

System_CAPS_pubmethodSystem_CAPS_staticCheckEnum<T>(String^, String^)

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

System_CAPS_pubmethodSystem_CAPS_staticCheckInRange(String^, String^, Int32, Int32)

Checks whether the parameter is in the required Int32 range.

System_CAPS_pubmethodSystem_CAPS_staticCheckInRange(String^, String^, Int64, Int64)

Checks whether the parameter is in the required Int64 range.

System_CAPS_pubmethodSystem_CAPS_staticCheckIsBoolean(String^, String^)

Checks whether the parameter is a valid Boolean value.

System_CAPS_pubmethodSystem_CAPS_staticCheckIsGuid(String^, String^)

Checks whether the parameter is a valid GUID.

System_CAPS_pubmethodSystem_CAPS_staticCheckIsGuidList(String^, String^)

Checks whether a parameter is a GUID list.

System_CAPS_pubmethodSystem_CAPS_staticCheckIsInteger(String^, String^)

Checks whether the parameter is an integer.

System_CAPS_pubmethodSystem_CAPS_staticCheckIsLong(String^, String^)

Checks whether the parameter is a long integer.

System_CAPS_pubmethodSystem_CAPS_staticCheckIsNonNegativeInteger(String^, String^)

Checks whether the parameter is a nonnegative integer.

System_CAPS_pubmethodSystem_CAPS_staticCheckIsNotNull(String^, Object^)

Checks whether the parameter is not null.

System_CAPS_pubmethodSystem_CAPS_staticCheckIsNotNullOrEmpty(String^, String^)

Checks whether the parameter is not null or empty.

System_CAPS_pubmethodSystem_CAPS_staticCheckIsPositiveInteger(String^, String^)

Checks whether the parameter is a positive integer.

System_CAPS_pubmethodSystem_CAPS_staticCheckIsValidSecurityIdentifier(String^, String^)

Checks whether the parameter is a valid security identifier value.

System_CAPS_pubmethodSystem_CAPS_staticReportViolation(String^, String^, HttpStatusCode)

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

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

Return to top

Community Additions

ADD
Show: