共用方式為


AnonymousIdentificationSection.CookieName 屬性

定義

取得或設定 Cookie 名稱。

public:
 property System::String ^ CookieName { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("cookieName", DefaultValue=".ASPXANONYMOUS")]
[System.Configuration.StringValidator(MinLength=1)]
public string CookieName { get; set; }
[<System.Configuration.ConfigurationProperty("cookieName", DefaultValue=".ASPXANONYMOUS")>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.CookieName : string with get, set
Public Property CookieName As String

屬性值

Cookie 的名稱。 預設值為 ".ASPXANONYMOUS"。

屬性

範例

下列程式碼範例示範如何存取 CookieName 屬性。

// Get CookieName.
string cookieName =
    anonymousIdentificationSection.CookieName;
Console.WriteLine("Cookie name: {0}",
    cookieName);
' Get CookieName.
Dim cookieName As String = _
anonymousIdentificationSection.CookieName
Console.WriteLine("Cookie name: {0}", cookieName)

適用於