AnonymousIdentificationSection.CookiePath プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Cookie が格納されるパスを取得または設定します。
public:
property System::String ^ CookiePath { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("cookiePath", DefaultValue="/")]
[System.Configuration.StringValidator(MinLength=1)]
public string CookiePath { get; set; }
[<System.Configuration.ConfigurationProperty("cookiePath", DefaultValue="/")>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.CookiePath : string with get, set
Public Property CookiePath As String
プロパティ値
ユーザーの匿名 ID に使用する HTTP Cookie のパス。 既定値は、Web アプリケーションのルートを表すスラッシュ (/) です。
- 属性
例
次のコード例は、 CookiePath プロパティにアクセスする方法を示しています。
// Get CookiePath.
string cookiePath =
anonymousIdentificationSection.CookiePath;
Console.WriteLine("Cookie path: {0}", cookiePath);
' Get CookiePath.
Dim cookiePath As String = _
anonymousIdentificationSection.CookiePath
Console.WriteLine("Cookie path: {0}", cookiePath)
注釈
CookiePath プロパティは、認証 Cookie が存在し、認証 Cookie 自体と共に送信される場所を示します。