Partager via


RequestChecker.Check Method (String, String, String, Func<String, Boolean>)

 

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.String

    The name of the parameter to check.

  • errorMsg
    Type: System.String

    The error message added into the web fault exception.

See Also

System.ServiceModel.Web.WebFaultException
RequestChecker Class
Microsoft.WindowsServerSolutions.WebApi.Framework Namespace

Return to top