Ext.NET  5.3.0
.NET Component Framework for Enterprise Level Apps
Ext.Net.Cookies Class Reference

More...

Inheritance diagram for Ext.Net.Cookies:
Ext.Net.ScriptClass Ext.Net.IScriptable Ext.Net.IResourceManager

Public Member Functions

override string ToScript ()
 
- Public Member Functions inherited from Ext.Net.ScriptClass
virtual void Render ()
 
virtual void Call (string name)
 
virtual void Call (string name, params object[] args)
 
virtual void Set (string name, object value)
 
virtual void AddScript (string template, params object[] args)
 
virtual void AddScript (string script)
 

Static Public Member Functions

static void Clear (string name)
 Removes a cookie with the provided name from the browser if found by setting its expiration date to sometime in the past. More...
 
static string GetValue (string name)
 Retrieves cookie value that are accessible by the current page. If a cookie does not exist, get() returns null. More...
 
static HttpCookie GetCookie (string name)
 Retrieves cookie that are accessible by the current page. If a cookie does not exist, get() returns null. More...
 
static void Set (string name, object value, DateTime expires, string path, string domain, bool secure)
 Create a cookie with the specified name and value. Additional settings for the cookie may be optionally specified (for example: expiration, access restriction, SSL). More...
 

Protected Member Functions

virtual void CallCookies (string name, params object[] args)
 
- Protected Member Functions inherited from Ext.Net.ScriptClass
virtual void CallTemplate (string template, string name, params object[] args)
 
virtual string FormatCall (string name, params object[] args)
 
virtual string FormatCallTemplate (string template, string name, params object[] args)
 
virtual string FormatArgs (object[] args)
 

Properties

override string InstanceOf [get]
 
- Properties inherited from Ext.Net.ScriptClass
virtual string InstanceOf [get]
 
virtual Page Page [get]
 
virtual ResourceManager ResourceManager [get]
 
- Properties inherited from Ext.Net.IScriptable
string InstanceOf [get]
 
- Properties inherited from Ext.Net.IResourceManager
ResourceManager ResourceManager [get]
 Get an instance of the ResourceManager More...
 
Page Page [get]
 Get an instance of the Page More...
 

Detailed Description

Member Function Documentation

◆ CallCookies()

virtual void Ext.Net.Cookies.CallCookies ( string  name,
params object[]  args 
)
inlineprotectedvirtual

Parameters
name
args

◆ Clear()

static void Ext.Net.Cookies.Clear ( string  name)
inlinestatic

Removes a cookie with the provided name from the browser if found by setting its expiration date to sometime in the past.

Parameters
nameThe name of the cookie to remove

◆ GetCookie()

static HttpCookie Ext.Net.Cookies.GetCookie ( string  name)
inlinestatic

Retrieves cookie that are accessible by the current page. If a cookie does not exist, get() returns null.

Parameters
nameThe name of the cookie to get
Returns
Returns the cookie for the specified name; null if the cookie name does not exist.

◆ GetValue()

static string Ext.Net.Cookies.GetValue ( string  name)
inlinestatic

Retrieves cookie value that are accessible by the current page. If a cookie does not exist, get() returns null.

Parameters
nameThe name of the cookie to get
Returns
Returns the cookie value for the specified name; null if the cookie name does not exist.

◆ Set()

static void Ext.Net.Cookies.Set ( string  name,
object  value,
DateTime  expires,
string  path,
string  domain,
bool  secure 
)
inlinestatic

Create a cookie with the specified name and value. Additional settings for the cookie may be optionally specified (for example: expiration, access restriction, SSL).

Parameters
nameThe name of the cookie to set.
valueThe value to set for the cookie.
expiresSpecify an expiration date the cookie is to persist until. Note that the specified Date object will be converted to Greenwich Mean Time (GMT).
pathSetting a path on the cookie restricts access to pages that match that path. Defaults to all pages ('/').
domainSetting a domain restricts access to pages on a given domain (typically used to allow cookie access across subdomains). For example, "ext.net" will create a cookie that can be accessed from any subdomain of ext.net, including www.ext.net, support.ext.net, etc.
secureSpecify true to indicate that the cookie should only be accessible via SSL on a page using the HTTPS protocol. Defaults to false. Note that this will only work if the page calling this code uses the HTTPS protocol, otherwise the cookie will be created with default options.

◆ ToScript()

override string Ext.Net.Cookies.ToScript ( )
inlinevirtual

Returns

Implements Ext.Net.ScriptClass.

Property Documentation

◆ InstanceOf

override string Ext.Net.Cookies.InstanceOf
get


The documentation for this class was generated from the following file: