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 | |
---|---|---|
![]() ![]() |
Check(String, String, String, Func<String, Boolean>) | Checks whether the parameter is valid by using a validator delegate. |
![]() ![]() |
CheckEnum<T>(String, String) | Checks whether the value is equal to a valid member of an enumeration. |
![]() ![]() |
CheckInRange(String, String, Int32, Int32) | Checks whether the parameter is in the required Int32 range. |
![]() ![]() |
CheckInRange(String, String, Int64, Int64) | Checks whether the parameter is in the required Int64 range. |
![]() ![]() |
CheckIsBoolean(String, String) | Checks whether the parameter is a valid Boolean value. |
![]() ![]() |
CheckIsGuid(String, String) | Checks whether the parameter is a valid GUID. |
![]() ![]() |
CheckIsGuidList(String, String) | Checks whether a parameter is a GUID list. |
![]() ![]() |
CheckIsInteger(String, String) | Checks whether the parameter is an integer. |
![]() ![]() |
CheckIsLong(String, String) | Checks whether the parameter is a long integer. |
![]() ![]() |
CheckIsNonNegativeInteger(String, String) | Checks whether the parameter is a nonnegative integer. |
![]() ![]() |
CheckIsNotNull(String, Object) | Checks whether the parameter is not null. |
![]() ![]() |
CheckIsNotNullOrEmpty(String, String) | Checks whether the parameter is not null or empty. |
![]() ![]() |
CheckIsPositiveInteger(String, String) | Checks whether the parameter is a positive integer. |
![]() ![]() |
CheckIsValidSecurityIdentifier(String, String) | Checks whether the parameter is a valid security identifier value. |
![]() ![]() |
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