Table of Contents

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

bool

Id

return the visitor id

public abstract int Id { get; }

Property Value

int

IsNew

return true if this is a new visitor

public abstract bool IsNew { get; }

Property Value

bool

UserId

return the id of the last user authenticated to this visitor

public abstract int UserId { get; }

Property Value

int

Methods

ClearProperty(string)

remove the property

public abstract void ClearProperty(string key)

Parameters

key string

GetBoolean(string)

return the visitor property from its key.

public abstract bool GetBoolean(string key)

Parameters

key string

Returns

bool

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

key string
defaultValue bool

Returns

bool

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

key string
defaultValue string

Returns

bool

GetDate(string)

return the visitor property from its key.

public abstract DateTime GetDate(string key)

Parameters

key string

Returns

DateTime

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

key string
defaultValue DateTime

Returns

DateTime

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

key string
defaultValue string

Returns

DateTime

GetInteger(string)

return the visitor property from its key.

public abstract int GetInteger(string key)

Parameters

key string

Returns

int

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

key string
defaultValue int

Returns

int

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

key string
defaultValue string

Returns

int

GetNumber(string)

return the visitor property from its key.

public abstract double GetNumber(string key)

Parameters

key string

Returns

double

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

key string
defaultValue double

Returns

double

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

key string
defaultValue string

Returns

double

GetObject<T>(string)

Return the user property for the specified key.

public abstract T GetObject<T>(string key)

Parameters

key string

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

key string

Returns

string

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

key string
defaultValue string

Returns

string

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

key string
defaultValue string
targetVisitorId int

Returns

string

GetText(string)

return the visitor property from its key.

public abstract string GetText(string key)

Parameters

key string

Returns

string

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

key string
defaultValue string

Returns

string

SetProperty(string, bool)

Set the key value for this visitor

public abstract void SetProperty(string key, bool value)

Parameters

key string
value bool

SetProperty(string, bool, int)

Set property value for a specific visitor

public abstract void SetProperty(string key, bool value, int targetVisitorid)

Parameters

key string
value bool
targetVisitorid int

SetProperty(string, DateTime)

Set the key value for this visitor

public abstract void SetProperty(string key, DateTime value)

Parameters

key string
value DateTime

SetProperty(string, DateTime, int)

Set property value for a specific visitor

public abstract void SetProperty(string key, DateTime value, int targetVisitorid)

Parameters

key string
value DateTime
targetVisitorid int

SetProperty(string, double)

Set the key value for this visitor

public abstract void SetProperty(string key, double value)

Parameters

key string
value double

SetProperty(string, double, int)

Set property value for a specific visitor

public abstract void SetProperty(string key, double value, int targetVisitorid)

Parameters

key string
value double
targetVisitorid int

SetProperty(string, int)

Set the key value for this visitor

public abstract void SetProperty(string key, int value)

Parameters

key string
value int

SetProperty(string, int, int)

Set property value for a specific visitor

public abstract void SetProperty(string key, int value, int targetVisitorid)

Parameters

key string
value int
targetVisitorid int

SetProperty(string, string)

Set property value for this visitor

public abstract void SetProperty(string key, string value)

Parameters

key string
value string

SetProperty(string, string, int)

Set property value for a specific visitor

public abstract void SetProperty(string key, string value, int targetVisitorid)

Parameters

key string
value string
targetVisitorid int