CreateUserWizard.PasswordRegularExpression プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > CreateUserWizard.PasswordRegularExpression プロパティの意味・解説 

CreateUserWizard.PasswordRegularExpression プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

指定されパスワード検証使用される正規表現取得または設定します

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Overridable Property
 PasswordRegularExpression As String
Dim instance As CreateUserWizard
Dim value As String

value = instance.PasswordRegularExpression

instance.PasswordRegularExpression = value
public virtual string PasswordRegularExpression
 { get; set; }
public:
virtual property String^ PasswordRegularExpression {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_PasswordRegularExpression ()

/** @property */
public void set_PasswordRegularExpression (String
 value)
public function get PasswordRegularExpression
 () : String

public function set PasswordRegularExpression
 (value : String)

プロパティ
指定されパスワード検証使用される正規表現格納する文字列既定値空の文字列 ("") です。

解説解説
使用例使用例

PasswordRegularExpression プロパティ使用して次の項目を確認するためにパスワード検証する正規表現定義するコード例次に示します

ユーザー入力したパスワードがこれらの基準満たしてない場合PasswordRegularExpressionErrorMessage プロパティ格納されテキストユーザー表示されます。

<%@ page language="VB"%>

<script runat="server">

</script>

<html>
<head id="Head1" runat="server">
    <title>CreateUserWizard.PasswordRegularExpression sample</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <asp:createuserwizard id="Createuserwizard1"
 runat="server" 
        passwordregularexpression='@\"(?=.{7,})(?=(.*\d){1,})(?=(.*\W){1
,})'
        passwordregularexpressionerrormessage="Your password must
 be 7 characters long, and contain at least one number and one special character.">
      </asp:createuserwizard>
    </div>
    </form>
</body>
</html>
<%@ page language="C#"%>

<script runat="server">

</script>

<html>
<head runat="server">
    <title>CreateUserWizard.PasswordRegularExpression sample</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <asp:createuserwizard id="Createuserwizard1" runat="server"
 
        passwordregularexpression='@\"(?=.{7,})(?=(.*\d){1,})(?=(.*\W){1,})'
        passwordregularexpressionerrormessage="Your password must be 7 characters
 long, and contain at least one number and one special character.">
      </asp:createuserwizard>
    </div>
    </form>
</body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CreateUserWizard クラス
CreateUserWizard メンバ
System.Web.UI.WebControls 名前空間
PasswordRegularExpressionErrorMessage
その他の技術情報
.NET Framework正規表現
ASP.NET ログイン コントロール



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「CreateUserWizard.PasswordRegularExpression プロパティ」の関連用語

CreateUserWizard.PasswordRegularExpression プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



CreateUserWizard.PasswordRegularExpression プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS