Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Checks whether the parameter is valid by using a validator delegate.
Namespace: Microsoft.WindowsServerSolutions.WebApi.Framework
Assembly: Wssg.WebApi.Framework (in Wssg.WebApi.Framework.dll)
Syntax
public static void Check(
string paramName,
string paramValue,
string errorMsg,
Func<string, bool> validator
)
public:
static void Check(
String^ paramName,
String^ paramValue,
String^ errorMsg,
Func<String^, bool>^ validator
)
Public Shared Sub Check (
paramName As String,
paramValue As String,
errorMsg As String,
validator As Func(Of String, Boolean)
)
Parameters
paramName
Type: System.StringThe name of the parameter to check.
paramValue
Type: System.StringThe value of the parameter.
errorMsg
Type: System.StringThe error message added into the web fault exception.
validator
Type: System.Func<String, Boolean>A Func<T, TResult> of types String and Boolean that represents the validation delegate to use when to validate the parameter.
See Also
System.ServiceModel.Web.WebFaultException
RequestChecker Class
Microsoft.WindowsServerSolutions.WebApi.Framework Namespace
Return to top