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

The type to check is an enumeration.
The name of the type parameter that caused the exception.
A message that describes the error.
Validates and throws an TypeArgumentException if the specified TEnum represents an enumeration.
Syntax
'Declaration
 
Public Overloads Shared Sub ThrowIfEnumType(Of TEnum)( _
   ByVal typeParamName As String, _
   ByVal message As String _
) 
public static void ThrowIfEnumType<TEnum>( 
   string typeParamName,
   string message
)

Parameters

typeParamName
The name of the type parameter that caused the exception.
message
A message that describes the error.

Type Parameters

TEnum
The type to check is an enumeration.
Exceptions
ExceptionDescription
TypeArgumentExceptionTEnum represents an enumeration.
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

Validator Class
Validator 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