AnonymousIdentificationSection.CookieName 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置 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)