ValidationMessageStore.Item[Expression<Func 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Item[FieldIdentifier] |
針對指定的欄位,取得這個 ValidationMessageStore 內的驗證訊息。 若要取得所有驗證訊息存放區的驗證訊息,請改用 GetValidationMessages(FieldIdentifier) |
Item[Expression<Func<Object>>] |
針對指定的欄位,取得這個 ValidationMessageStore 內的驗證訊息。 若要取得所有驗證訊息存放區的驗證訊息,請改用 GetValidationMessages(FieldIdentifier) |
Item[FieldIdentifier]
針對指定的欄位,取得這個 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>>]
針對指定的欄位,取得這個 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 中指定欄位的驗證訊息。