ValidationOptions.TryGetValidatableTypeInfo(Type, IValidatableInfo) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to get validation information for the specified type.
public:
bool TryGetValidatableTypeInfo(Type ^ type, [Runtime::InteropServices::Out] Microsoft::Extensions::Validation::IValidatableInfo ^ % validatableTypeInfo);
[System.Diagnostics.CodeAnalysis.Experimental("ASP0029", UrlFormat="https://aka.ms/aspnet/analyzer/{0}")]
public bool TryGetValidatableTypeInfo(Type type, out Microsoft.Extensions.Validation.IValidatableInfo? validatableTypeInfo);
[<System.Diagnostics.CodeAnalysis.Experimental("ASP0029", UrlFormat="https://aka.ms/aspnet/analyzer/{0}")>]
member this.TryGetValidatableTypeInfo : Type * IValidatableInfo -> bool
Public Function TryGetValidatableTypeInfo (type As Type, ByRef validatableTypeInfo As IValidatableInfo) As Boolean
Parameters
- type
- Type
The type to get validation information for.
- validatableTypeInfo
- IValidatableInfo
When this method returns, contains the validation information for the specified type, if the type was found; otherwise, null.
Returns
true if validation information was found for the specified type; otherwise, false.
- Attributes