RegexValidator(AutofillId, Pattern) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
預設建構函式。
[Android.Runtime.Register(".ctor", "(Landroid/view/autofill/AutofillId;Ljava/util/regex/Pattern;)V", "", ApiSince=27)]
public RegexValidator(Android.Views.Autofill.AutofillId id, Java.Util.Regex.Pattern regex);
[<Android.Runtime.Register(".ctor", "(Landroid/view/autofill/AutofillId;Ljava/util/regex/Pattern;)V", "", ApiSince=27)>]
new Android.Service.Autofill.RegexValidator : Android.Views.Autofill.AutofillId * Java.Util.Regex.Pattern -> Android.Service.Autofill.RegexValidator
參數
- id
- AutofillId
該欄位的 ID,該欄位的正則表達式被套用。
- regex
- Pattern
定義驗證子結果的正則表達式:若正則表達式與由 id識別的欄位內容相符,則回傳 true;否則,回傳 false。
- 屬性
備註
預設建構函式。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。