Class CPVisitorBaseClass
- Namespace
- Contensive.BaseClasses
- Assembly
- CPBase.dll
public abstract class CPVisitorBaseClass
- Inheritance
-
CPVisitorBaseClass
- Inherited Members
Properties
ForceBrowserMobile
set the visit property to force the mobile state true
[Obsolete("Deprecated.", false)]
public abstract bool ForceBrowserMobile { get; set; }
Property Value
Id
return the visitor id
public abstract int Id { get; }
Property Value
IsNew
return true if this is a new visitor
public abstract bool IsNew { get; }
Property Value
UserId
return the id of the last user authenticated to this visitor
public abstract int UserId { get; }
Property Value
Methods
ClearProperty(string)
remove the property
public abstract void ClearProperty(string key)
Parameters
keystring
GetBoolean(string)
return the visitor property from its key.
public abstract bool GetBoolean(string key)
Parameters
keystring
Returns
GetBoolean(string, bool)
return the visitor property from its key. If missing, set and return the defaultValue.
public abstract bool GetBoolean(string key, bool defaultValue)
Parameters
Returns
GetBoolean(string, string)
Use the Get that returns the appropriate defaultvalue type.
[Obsolete("Use the Get that returns the appropriate defaultvalue type.")]
public abstract bool GetBoolean(string key, string defaultValue)
Parameters
Returns
GetDate(string)
return the visitor property from its key.
public abstract DateTime GetDate(string key)
Parameters
keystring
Returns
GetDate(string, DateTime)
return the visitor property from its key. If missing, set and return the defaultValue.
public abstract DateTime GetDate(string key, DateTime defaultValue)
Parameters
Returns
GetDate(string, string)
Use the Get that returns the appropriate defaultvalue type.
[Obsolete("Use the Get that returns the appropriate defaultvalue type.")]
public abstract DateTime GetDate(string key, string defaultValue)
Parameters
Returns
GetInteger(string)
return the visitor property from its key.
public abstract int GetInteger(string key)
Parameters
keystring
Returns
GetInteger(string, int)
return the visitor property from its key. If missing, set and return the defaultValue.
public abstract int GetInteger(string key, int defaultValue)
Parameters
Returns
GetInteger(string, string)
Use the Get that returns the appropriate defaultvalue type.
[Obsolete("Use the Get that returns the appropriate defaultvalue type.")]
public abstract int GetInteger(string key, string defaultValue)
Parameters
Returns
GetNumber(string)
return the visitor property from its key.
public abstract double GetNumber(string key)
Parameters
keystring
Returns
GetNumber(string, double)
return the visitor property from its key. If missing, set and return the defaultValue.
public abstract double GetNumber(string key, double defaultValue)
Parameters
Returns
GetNumber(string, string)
Use the Get that returns the appropriate defaultvalue type.
[Obsolete("Use the Get that returns the appropriate defaultvalue type.")]
public abstract double GetNumber(string key, string defaultValue)
Parameters
Returns
GetObject<T>(string)
Return the user property for the specified key.
public abstract T GetObject<T>(string key)
Parameters
keystring
Returns
- T
Type Parameters
T
GetProperty(string)
Use the Get that returns the appropriate defaultvalue type.
[Obsolete("Use the Get that returns the appropriate type.")]
public abstract string GetProperty(string key)
Parameters
keystring
Returns
GetProperty(string, string)
Use the Get that returns the appropriate defaultvalue type.
[Obsolete("Use the Get that returns the appropriate type.")]
public abstract string GetProperty(string key, string defaultValue)
Parameters
Returns
GetProperty(string, string, int)
Use the Get that returns the appropriate defaultvalue type.
[Obsolete("Use the Get that returns the appropriate type.")]
public abstract string GetProperty(string key, string defaultValue, int targetVisitorId)
Parameters
Returns
GetText(string)
return the visitor property from its key.
public abstract string GetText(string key)
Parameters
keystring
Returns
GetText(string, string)
return the visitor property from its key. If missing, set and return the defaultValue.
public abstract string GetText(string key, string defaultValue)
Parameters
Returns
SetProperty(string, bool)
Set the key value for this visitor
public abstract void SetProperty(string key, bool value)
Parameters
SetProperty(string, bool, int)
Set property value for a specific visitor
public abstract void SetProperty(string key, bool value, int targetVisitorid)
Parameters
SetProperty(string, DateTime)
Set the key value for this visitor
public abstract void SetProperty(string key, DateTime value)
Parameters
SetProperty(string, DateTime, int)
Set property value for a specific visitor
public abstract void SetProperty(string key, DateTime value, int targetVisitorid)
Parameters
SetProperty(string, double)
Set the key value for this visitor
public abstract void SetProperty(string key, double value)
Parameters
SetProperty(string, double, int)
Set property value for a specific visitor
public abstract void SetProperty(string key, double value, int targetVisitorid)
Parameters
SetProperty(string, int)
Set the key value for this visitor
public abstract void SetProperty(string key, int value)
Parameters
SetProperty(string, int, int)
Set property value for a specific visitor
public abstract void SetProperty(string key, int value, int targetVisitorid)
Parameters
SetProperty(string, string)
Set property value for this visitor
public abstract void SetProperty(string key, string value)
Parameters
SetProperty(string, string, int)
Set property value for a specific visitor
public abstract void SetProperty(string key, string value, int targetVisitorid)