Table of Contents

Interface IApplication

Namespace
Dynamicweb.Environment
Assembly
Dynamicweb.Environment.dll
Interface IApplication is an abstraction of HttpApplicationState. Enables sharing of global information across multiple sessions and requests within the application.
public interface IApplication

Properties

AllKeys

Gets the access keys for all objects in the collection
string[] AllKeys { get; }

Property Value

string[]
All keys.

Count

Gets the count.
int Count { get; }

Property Value

int
The count.

this[int]

Gets the object at the specified index.
object this[int index] { get; }

Parameters

index int
The index.

Property Value

object
System.Object.

this[string]

Gets or sets the object with the specified name.
object this[string name] { get; set; }

Parameters

name string
The name.

Property Value

object
System.Object.

Keys

Gets the keys.
NameObjectCollectionBase.KeysCollection Keys { get; }

Property Value

NameObjectCollectionBase.KeysCollection
The keys.

Methods

Add(string, object)

Adds a new object to the collection
void Add(string name, object value)

Parameters

name string
The name.
value object
The value.

Clear()

Removes all objects from the collection
void Clear()

IsValid()

Returns a value indicating if the Underlying Context and Application is available and valid
bool IsValid()

Returns

bool
True if the underlying context and application is available and valid, otherwise false

Lock()

Locks access to the collection in order to enable synchronized access
void Lock()

Remove(string)

Removes the named object from the collection
void Remove(string name)

Parameters

name string
The name.

Set(string, object)

Updates the value of an object in the collection
void Set(string name, object value)

Parameters

name string
The name.
value object
The value.

Unlock()

Unlocks access to the collection.
void Unlock()
To top