ValidationMessageStore.Item[Expression<Func 属性

定义

重载

Item[FieldIdentifier]

获取指定字段的此 ValidationMessageStore 中的验证消息。

若要跨所有验证消息存储获取验证消息,请改用GetValidationMessages(FieldIdentifier)

Item[Expression<Func<Object>>]

获取指定字段的此 ValidationMessageStore 中的验证消息。

若要跨所有验证消息存储获取验证消息,请改用GetValidationMessages(FieldIdentifier)

Item[FieldIdentifier]

Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs

获取指定字段的此 ValidationMessageStore 中的验证消息。

若要跨所有验证消息存储获取验证消息,请改用GetValidationMessages(FieldIdentifier)

public:
 property System::Collections::Generic::IEnumerable<System::String ^> ^ default[Microsoft::AspNetCore::Components::Forms::FieldIdentifier] { System::Collections::Generic::IEnumerable<System::String ^> ^ get(Microsoft::AspNetCore::Components::Forms::FieldIdentifier fieldIdentifier); };
public System.Collections.Generic.IEnumerable<string> this[Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier] { get; }
member this.Item(Microsoft.AspNetCore.Components.Forms.FieldIdentifier) : seq<string>
Default Public ReadOnly Property Item(fieldIdentifier As FieldIdentifier) As IEnumerable(Of String)

参数

fieldIdentifier
FieldIdentifier

字段的标识符。

属性值

ValidationMessageStore中指定字段的验证消息。

适用于

Item[Expression<Func<Object>>]

Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs
Source:
ValidationMessageStore.cs

获取指定字段的此 ValidationMessageStore 中的验证消息。

若要跨所有验证消息存储获取验证消息,请改用GetValidationMessages(FieldIdentifier)

public:
 property System::Collections::Generic::IEnumerable<System::String ^> ^ default[System::Linq::Expressions::Expression<Func<System::Object ^> ^> ^] { System::Collections::Generic::IEnumerable<System::String ^> ^ get(System::Linq::Expressions::Expression<Func<System::Object ^> ^> ^ accessor); };
public System.Collections.Generic.IEnumerable<string> this[System.Linq.Expressions.Expression<Func<object>> accessor] { get; }
member this.Item(System.Linq.Expressions.Expression<Func<obj>>) : seq<string>
Default Public ReadOnly Property Item(accessor As Expression(Of Func(Of Object))) As IEnumerable(Of String)

参数

accessor
Expression<Func<Object>>

字段的标识符。

属性值

ValidationMessageStore中指定字段的验证消息。

适用于