Validates whether type can be specified as the base class
(or an interface) for a dynamically-generated proxy.
Namespace: NHibernate.ProxyAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
ICollection<string> ValidateType( Type type ) |
Visual Basic |
---|
Function ValidateType ( _ type As Type _ ) As ICollection(Of String) |
Visual C++ |
---|
ICollection<String^>^ ValidateType( Type^ type ) |
Parameters
- type
- Type: System..::..Type
The type to validate.
Return Value
A collection of errors messages, if any, or nullNothingnullptra null reference (Nothing in Visual Basic) if none were found.Remarks
When the configuration property "use_proxy_validator" is set to true(default), the result of this method
is used to throw a detailed exception about the proxeability of the given type.