Cuemon .NET Framework
IsStringOf<TEnum>(String,Boolean) Method

The type of the enumeration to validate.
A string containing the name or value to validate.
true to ignore case; false to regard case.
Determines whether the specified value is an equivalent of TEnum.
Syntax
'Declaration
 
Public Overloads Shared Function IsStringOf(Of TEnum As {New, IConvertible, Struct})( _
   ByVal value As String, _
   ByVal ignoreCase As Boolean _
) As Boolean
public static bool IsStringOf<TEnum>( 
   string value,
   bool ignoreCase
)
where TEnum: new(), IConvertible, struct

Parameters

value
A string containing the name or value to validate.
ignoreCase
true to ignore case; false to regard case.

Type Parameters

TEnum
The type of the enumeration to validate.

Return Value

true if the value parameter is an equivalent of TEnum; otherwise, false.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EnumUtility Class
EnumUtility Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback