| Visual Basic (Declaration) | |
|---|---|
Public Shared Function GetValidator(Of T As ICommandRequestValidator)() As T | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim value As T value = CommandRequestValidationManager.GetValidator(Of T)() | |
| C# | |
|---|---|
public static T GetValidator<T>()where T: ICommandRequestValidator | |
| C++/CLI | |
|---|---|
public: static T^ GetValidatorgeneric<typename T> (); where T: ICommandRequestValidator | |
Type Parameters
- T
- The type of validator to get.
Return Value
A validator of the specified type. Null if the validator is not found.Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Copy Code