AnonymousIdentificationModule.Creating イベントとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > AnonymousIdentificationModule.Creating イベントの意味・解説 

AnonymousIdentificationModule.Creating イベント

メモ : このイベントは、.NET Framework version 2.0新しく追加されたものです。

新し匿名 ID作成される発生します

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

Public Event Creating As
 AnonymousIdentificationEventHandler
Dim instance As AnonymousIdentificationModule
Dim handler As AnonymousIdentificationEventHandler

AddHandler instance.Creating, handler
public event AnonymousIdentificationEventHandler Creating
public:
event AnonymousIdentificationEventHandler^ Creating {
    void add (AnonymousIdentificationEventHandler^ value);
    void remove (AnonymousIdentificationEventHandler^ value);
}
/** @event */
public void add_Creating (AnonymousIdentificationEventHandler
 value)

/** @event */
public void remove_Creating (AnonymousIdentificationEventHandler
 value)
JScript では、イベント使用できますが、新規に宣言することはできません。
解説解説

Creating イベントは、PostAuthenticateRequest イベント時に生成されます。

AnonymousIdentificationModule クラスCreating イベントには、ASP.NET アプリケーションの Global.asax ファイルに、AnonymousIdentification_Creating というサブルーチン指定することによってアクセスできます

AnonymousIdentification_Creating イベント渡した AnonymousIdentificationEventArgs オブジェクトの AnonymousId プロパティ使用して匿名 IDカスタム値に設定できますAnonymousIdentification_Creating イベント時に AnonymousId プロパティに値を指定しなかった場合は、Guid使用されます。

AnonymousIdentification_Creating イベントは、匿名 IDEnabled場合にだけ発生します

使用例使用例

AnonymousIdentification_Creating イベント使用して匿名 IDカスタム値に設定するコード例次に示します

Public Sub AnonymousIdentification_Creating(sender
 As Object,  _
                                            args As AnonymousIdentificationEventArgs)
  args.AnonymousID = Samples.AspNet.Security.MyIdClass.GetAnonymousId()
  Samples.AspNet.Security.MyIdClass.LogAnonymousId(args.AnonymousId)
End Sub
public void AnonymousIdentification_Creating(object
 sender, 
                                             AnonymousIdentificationEventArgs args)
{
  args.AnonymousID = Samples.AspNet.Security.MyIdClass.GetAnonymousId();
  Samples.AspNet.Security.MyIdClass.LogAnonymousId(args.AnonymousID);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AnonymousIdentificationModule クラス
AnonymousIdentificationModule メンバ
System.Web.Security 名前空間
その他の技術情報
anonymousIdentification 要素 (ASP.NET 設定スキーマ)
Global.asax 構文


このページでは「.NET Framework クラス ライブラリ リファレンス」からAnonymousIdentificationModule.Creating イベントを検索した結果を表示しています。
Weblioに収録されているすべての辞書からAnonymousIdentificationModule.Creating イベントを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からAnonymousIdentificationModule.Creating イベント を検索

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

辞書ショートカット

すべての辞書の索引

AnonymousIdentificationModule.Creating イベントのお隣キーワード
検索ランキング

   

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



AnonymousIdentificationModule.Creating イベントのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS