Share via


WriterConfigDictionary Property

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

Gets or sets the WriterConfig dictionary for the cache.

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

Syntax

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

value = instance.WriterConfigDictionary

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

Property Value

Type: System..::.Object
The writer 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 WriterConfig 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 failure.

Permissions

See Also

Reference

CommerceCache Class

CommerceCache Members

Microsoft.CommerceServer.Runtime.Caching Namespace