AnonymousIdentificationSection.CookiePath プロパティ

定義

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 自体と共に送信される場所を示します。

適用対象