Partager via


RequestChecker.CheckEnum<T> Method (String, String)

 

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

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

Syntax

public static void CheckEnum<T>(
    string paramName,
    string paramValue
)
where T : struct
public:
generic<typename T>
where T : value struct, gcnew()
static void CheckEnum(
    String^ paramName,
    String^ paramValue
)
Public Shared Sub CheckEnum(Of T As Structure) (
    paramName As String,
    paramValue As String
)

Parameters

  • paramName
    Type: System.String

    The name of the parameter to check.

Type Parameters

  • T
    The enumeration type.

See Also

RequestChecker Class
Microsoft.WindowsServerSolutions.WebApi.Framework Namespace

Return to top