Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractSharedStateFactory.GetKey Method

Create the key used for obtaining the state dictionary for instance.

[Visual Basic]
Protected MustOverride Sub GetKey( _
   ByVal instance As Object, _
   ByVal name As String _
)
[C#]
protected abstract object GetKey(
   object instance,
   string name
);

Parameters

instance
the instance to create the key for
name
the name of the instance.

Return Value

the key identifying the state dictionary to be used for instance or null, if this state manager doesn't serve the given instance.

Remarks

Implementations may choose to return null from this method to indicate, that they won't serve state for the given instance.

Note:Keys returned by this method are always treated case-sensitive!

See Also

AbstractSharedStateFactory Class | Spring.Objects.Support Namespace