Class CPVisitBaseClass
- Namespace
- Contensive.BaseClasses
- Assembly
- CPBase.dll
public abstract class CPVisitBaseClass
- Inheritance
-
CPVisitBaseClass
- Inherited Members
Properties
CookieSupport
return true if the visit supports cookies
public abstract bool CookieSupport { get; }
Property Value
Id
Return the visit id
public abstract int Id { get; }
Property Value
LastTime
The time of the last hit
public abstract DateTime LastTime { get; }
Property Value
LoginAttempts
Return the number of login attempts
public abstract int LoginAttempts { get; }
Property Value
Name
Return the name of the visit
public abstract string Name { get; }
Property Value
Pages
Return the number of hits to the application
public abstract int Pages { get; }
Property Value
Referer
Return the referer for the visit
public abstract string Referer { get; }
Property Value
StartDateValue
The date when the visit started
public abstract int StartDateValue { get; }
Property Value
StartTime
The time when the visit started
public abstract DateTime StartTime { get; }
Property Value
Methods
ClearProperty(string)
remove the property
public abstract void ClearProperty(string key)
Parameters
keystring
GetBoolean(string)
Get the visit property that matches the key.
public abstract bool GetBoolean(string key)
Parameters
keystring
Returns
GetBoolean(string, bool)
Get the visit property that matches the key. If not found set and return the default value.
public abstract bool GetBoolean(string key, bool defaultValue)
Parameters
Returns
GetBoolean(string, string)
[Obsolete("Deprecated. Use the get with the correct default argumnet type", false)]
public abstract bool GetBoolean(string key, string defaultValue)
Parameters
Returns
GetDate(string)
Get the visit property that matches the key.
public abstract DateTime GetDate(string key)
Parameters
keystring
Returns
GetDate(string, DateTime)
Get the visit property that matches the key. If not found set and return the default value.
public abstract DateTime GetDate(string key, DateTime defaultValue)
Parameters
Returns
GetDate(string, string)
[Obsolete("Deprecated. Use the get with the correct default argumnet type", false)]
public abstract DateTime GetDate(string key, string defaultValue)
Parameters
Returns
GetInteger(string)
Get the visit property that matches the key.
public abstract int GetInteger(string key)
Parameters
keystring
Returns
GetInteger(string, int)
Get the visit property that matches the key. If not found set and return the default value.
public abstract int GetInteger(string key, int defaultValue)
Parameters
Returns
GetInteger(string, string)
[Obsolete("Deprecated. Use the get with the correct default argumnet type", false)]
public abstract int GetInteger(string key, string defaultValue)
Parameters
Returns
GetNumber(string)
Get the visit property that matches the key.
public abstract double GetNumber(string key)
Parameters
keystring
Returns
GetNumber(string, double)
Get the visit property that matches the key. If not found set and return the default value.
public abstract double GetNumber(string key, double defaultValue)
Parameters
Returns
GetNumber(string, string)
[Obsolete("Deprecated. Use the get with the correct default argumnet type", false)]
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)
[Obsolete("Use Get of the correct type", false)]
public abstract string GetProperty(string key)
Parameters
keystring
Returns
GetProperty(string, string)
[Obsolete("Use Get of the correct type", false)]
public abstract string GetProperty(string key, string defaultValue)
Parameters
Returns
GetProperty(string, string, int)
[Obsolete("Use Get of the correct type", false)]
public abstract string GetProperty(string key, string defaultValue, int targetVisitId)
Parameters
Returns
GetText(string)
Get the visit property that matches the key.
public abstract string GetText(string key)
Parameters
keystring
Returns
GetText(string, string)
Get the visit property that matches the key. If not found set and return the default value.
public abstract string GetText(string key, string defaultValue)
Parameters
Returns
SetProperty(string, bool)
Set a property value for the current visit
public abstract void SetProperty(string key, bool value)
Parameters
SetProperty(string, bool, int)
Set a property value for a specific visit
public abstract void SetProperty(string key, bool value, int targetVisitId)
Parameters
SetProperty(string, DateTime)
Set a property value for the current visit
public abstract void SetProperty(string key, DateTime value)
Parameters
SetProperty(string, DateTime, int)
Set a property value for a specific visit
public abstract void SetProperty(string key, DateTime value, int targetVisitId)
Parameters
SetProperty(string, double)
Set a property value for the current visit
public abstract void SetProperty(string key, double value)
Parameters
SetProperty(string, double, int)
Set a property value for a specific visit
public abstract void SetProperty(string key, double value, int targetVisitId)
Parameters
SetProperty(string, int)
Set a property value for the current visit
public abstract void SetProperty(string key, int value)
Parameters
SetProperty(string, int, int)
Set a property value for a specific visit
public abstract void SetProperty(string key, int value, int targetVisitId)
Parameters
SetProperty(string, string)
Set a text value for the visit
public abstract void SetProperty(string key, string value)
Parameters
SetProperty(string, string, int)
Set a property value for the visit for a specific visit
public abstract void SetProperty(string key, string value, int targetVisitId)