Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractSharedStateFactory.GetSharedStateFor Method

Gets a dictionary acc. to the type of instance. If no dictionary is found, create it according to CaseSensitiveState

[Visual Basic]
Public NotOverridable Sub GetSharedStateFor( _
   ByVal instance As Object, _
   ByVal name As String _
) _
    Implements ISharedStateFactory.GetSharedStateFor
[C#]
public IDictionary GetSharedStateFor(
   object instance,
   string name
);

Parameters

instance
the instance to obtain shared state for
name
the name of the instance.

Return Value

A dictionary containing the instance's state, or null if no state can be served by this provider.

Implements

ISharedStateFactory.GetSharedStateFor

See Also

AbstractSharedStateFactory Class | Spring.Objects.Support Namespace