Dela via


ModelPropertyCollection.Item[String] Property

Definition

Gets a ModelMetadata instance for the property corresponding to propertyName.

public:
 property Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ default[System::String ^] { Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ get(System::String ^ propertyName); };
public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata this[string propertyName] { get; }
public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata? this[string propertyName] { get; }
member this.Item(string) : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
Default Public ReadOnly Property Item(propertyName As String) As ModelMetadata

Parameters

propertyName
String

The property name. Property names are compared using Ordinal.

Property Value

The ModelMetadata instance for the property specified by propertyName, or null if no match can be found.

Applies to