LoaderConfigDictionary Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets the LoaderConfig dictionary for the cache.

Namespace:  Microsoft.CommerceServer.Runtime.Caching
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Property LoaderConfigDictionary As Object
'Usage
Dim instance As CommerceCache
Dim value As Object

value = instance.LoaderConfigDictionary

instance.LoaderConfigDictionary = value
public Object LoaderConfigDictionary { get; set; }
public:
property Object^ LoaderConfigDictionary {
    Object^ get ();
    void set (Object^ value);
}
public function get LoaderConfigDictionary () : Object
public function set LoaderConfigDictionary (value : Object)

Property Value

Type: System..::.Object
The loader configuration dictionary that consists of the set of name-value pairs that will be passed to the cache loader component during a refresh operation.

Exceptions

Exception Condition
ArgumentNullException

The provided value is not of type Commerce.IDictionary.

ArgumentNullException

An attempt to set this property to nullNothingnullptra null reference (Nothing in Visual Basic).

CommerceCacheException

A General failure

Remarks

Stores the LoaderConfig dictionary for the cache. A configured cache must have a loader component configured, but a writer component is optional. When a cache refresh occurs, the writer component is fired against the contents of the "old" copy of the cache (if one exists) and then the loader component is fired to populate a new cache object. Throws an ArgumentException if the provided value is not of type Commerce.IDictionary. Throws an ArgumentNullException if the provided value is nullNothingnullptra null reference (Nothing in Visual Basic). Throws an CommerceCacheException on a failure.

Permissions

See Also

Reference

CommerceCache Class

CommerceCache Members

Microsoft.CommerceServer.Runtime.Caching Namespace