IValidatableTypeInfo.TryFindProperty 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.
Retrieves the validatable property info for the specified property name.
public:
bool TryFindProperty(System::String ^ propertyName, Microsoft::Extensions::Validation::ValidationOptions ^ validationOptions, [Runtime::InteropServices::Out] Microsoft::Extensions::Validation::IValidatablePropertyInfo ^ % validatablePropertyInfo);
public bool TryFindProperty(string propertyName, Microsoft.Extensions.Validation.ValidationOptions validationOptions, out Microsoft.Extensions.Validation.IValidatablePropertyInfo? validatablePropertyInfo);
abstract member TryFindProperty : string * Microsoft.Extensions.Validation.ValidationOptions * IValidatablePropertyInfo -> bool
Public Function TryFindProperty (propertyName As String, validationOptions As ValidationOptions, ByRef validatablePropertyInfo As IValidatablePropertyInfo) As Boolean
Parameters
- propertyName
- String
The name of the property to find its validatable property info.
- validationOptions
- ValidationOptions
The validation options.
- validatablePropertyInfo
- IValidatablePropertyInfo
The validatable property info, or null if not found.
Returns
True if the property is found. Otherwise, false.