Register an instance factory method for a given type. This should be used when registering types that implement IGFSerializable.

Namespace: GemStone.GemFire.Cache
Assembly:  GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.5.0.1

Syntax

C#
public static void RegisterType(
	TypeFactoryMethod creationMethod
)
Visual Basic (Declaration)
Public Shared Sub RegisterType ( _
	creationMethod As TypeFactoryMethod _
)
Visual C++
public:
static void RegisterType (
	TypeFactoryMethod^ creationMethod
)

Parameters

creationMethod
TypeFactoryMethod
the creation function to register

Exceptions

ExceptionCondition
GemStone.GemFire.Cache..::IllegalArgumentException if the method is null
GemStone.GemFire.Cache..::IllegalStateException if the typeId has already been registered, or there is an error in registering the type; check Utils::LastError for more information in the latter case.

See Also