Table of Contents

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

bool

Id

Return the visit id

public abstract int Id { get; }

Property Value

int

LastTime

The time of the last hit

public abstract DateTime LastTime { get; }

Property Value

DateTime

LoginAttempts

Return the number of login attempts

public abstract int LoginAttempts { get; }

Property Value

int

Name

Return the name of the visit

public abstract string Name { get; }

Property Value

string

Pages

Return the number of hits to the application

public abstract int Pages { get; }

Property Value

int

Referer

Return the referer for the visit

public abstract string Referer { get; }

Property Value

string

StartDateValue

The date when the visit started

public abstract int StartDateValue { get; }

Property Value

int

StartTime

The time when the visit started

public abstract DateTime StartTime { get; }

Property Value

DateTime

Methods

ClearProperty(string)

remove the property

public abstract void ClearProperty(string key)

Parameters

key string

GetBoolean(string)

Get the visit property that matches the key.

public abstract bool GetBoolean(string key)

Parameters

key string

Returns

bool

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

key string
defaultValue bool

Returns

bool

GetBoolean(string, string)

[Obsolete("Deprecated. Use the get with the correct default argumnet type", false)]
public abstract bool GetBoolean(string key, string defaultValue)

Parameters

key string
defaultValue string

Returns

bool

GetDate(string)

Get the visit property that matches the key.

public abstract DateTime GetDate(string key)

Parameters

key string

Returns

DateTime

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

key string
defaultValue DateTime

Returns

DateTime

GetDate(string, string)

[Obsolete("Deprecated. Use the get with the correct default argumnet type", false)]
public abstract DateTime GetDate(string key, string defaultValue)

Parameters

key string
defaultValue string

Returns

DateTime

GetInteger(string)

Get the visit property that matches the key.

public abstract int GetInteger(string key)

Parameters

key string

Returns

int

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

key string
defaultValue int

Returns

int

GetInteger(string, string)

[Obsolete("Deprecated. Use the get with the correct default argumnet type", false)]
public abstract int GetInteger(string key, string defaultValue)

Parameters

key string
defaultValue string

Returns

int

GetNumber(string)

Get the visit property that matches the key.

public abstract double GetNumber(string key)

Parameters

key string

Returns

double

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

key string
defaultValue double

Returns

double

GetNumber(string, string)

[Obsolete("Deprecated. Use the get with the correct default argumnet type", false)]
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)

[Obsolete("Use Get of the correct type", false)]
public abstract string GetProperty(string key)

Parameters

key string

Returns

string

GetProperty(string, string)

[Obsolete("Use Get of the correct type", false)]
public abstract string GetProperty(string key, string defaultValue)

Parameters

key string
defaultValue string

Returns

string

GetProperty(string, string, int)

[Obsolete("Use Get of the correct type", false)]
public abstract string GetProperty(string key, string defaultValue, int targetVisitId)

Parameters

key string
defaultValue string
targetVisitId int

Returns

string

GetText(string)

Get the visit property that matches the key.

public abstract string GetText(string key)

Parameters

key string

Returns

string

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

key string
defaultValue string

Returns

string

SetProperty(string, bool)

Set a property value for the current visit

public abstract void SetProperty(string key, bool value)

Parameters

key string
value bool

SetProperty(string, bool, int)

Set a property value for a specific visit

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

Parameters

key string
value bool
targetVisitId int

SetProperty(string, DateTime)

Set a property value for the current visit

public abstract void SetProperty(string key, DateTime value)

Parameters

key string
value DateTime

SetProperty(string, DateTime, int)

Set a property value for a specific visit

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

Parameters

key string
value DateTime
targetVisitId int

SetProperty(string, double)

Set a property value for the current visit

public abstract void SetProperty(string key, double value)

Parameters

key string
value double

SetProperty(string, double, int)

Set a property value for a specific visit

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

Parameters

key string
value double
targetVisitId int

SetProperty(string, int)

Set a property value for the current visit

public abstract void SetProperty(string key, int value)

Parameters

key string
value int

SetProperty(string, int, int)

Set a property value for a specific visit

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

Parameters

key string
value int
targetVisitId int

SetProperty(string, string)

Set a text value for the visit

public abstract void SetProperty(string key, string value)

Parameters

key string
value string

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)

Parameters

key string
value string
targetVisitId int