AnonymousIdentificationEventArgs クラス
アセンブリ: System.Web (system.web.dll 内)


AnonymousIdentificationEventArgs クラスは Creating イベントにイベント値を指定し、現在の要求に対するカスタムの Windows ID を指定できるようにするために使用されます。AnonymousIdentificationModule クラスの Creating イベントには、ASP.NET アプリケーションの Global.asax ファイルに、AnonymousIdentification_Creating というサブルーチンを指定することによってアクセスできます。
AnonymousIdentificationModule は、現在の HttpContext を使用して AnonymousIdentificationEventArgs オブジェクトを生成し、それを AnonymousIdentification_Creating イベントに渡します。
AnonymousIdentification_Creating イベントに渡した AnonymousIdentificationEventArgs オブジェクトの AnonymousId プロパティを使用して、匿名 ID をカスタム値に設定できます。AnonymousIdentification_Creating イベント時に AnonymousId プロパティに値を設定しなかった場合は、Guid が使用されます。
AnonymousIdentification_Creating イベントは、匿名 ID が Enabled の場合にだけ発生します。

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


System.EventArgs
System.Web.Security.AnonymousIdentificationEventArgs


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- AnonymousIdentificationEventArgs クラスのページへのリンク