Cuemon .NET Framework
ThrowIfContainsType<T>(String,Type[]) Method

The name of the type parameter that caused the exception.
A variable number of System.Type arguments to match with the type of T.
Validates and throws an TypeArgumentOutOfRangeException if the specified T is contained within at least one of the specified types.
Syntax
'Declaration
 
Public Overloads Shared Sub ThrowIfContainsType(Of T)( _
   ByVal typeParamName As String, _
   ByVal ParamArray types() As Type _
) 
public static void ThrowIfContainsType<T>( 
   string typeParamName,
   params Type[] types
)

Parameters

typeParamName
The name of the type parameter that caused the exception.
types
A variable number of System.Type arguments to match with the type of T.

Type Parameters

T
Exceptions
ExceptionDescription
System.ArgumentNullExceptiontypes is null.
TypeArgumentOutOfRangeExceptionT is contained within at least one of the specified types.
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