Register a type by the type code specified.

Namespace: Hypertable.Persistence.Serialization
Assembly: ht4o (in ht4o.dll) Version: 0.9.8.11 (0.9.8.11)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static bool Register(
	int typeCode,
	Type type
)
Public Shared Function Register ( _
	typeCode As Integer, _
	type As Type _
) As Boolean
public:
static bool Register(
	int typeCode, 
	Type^ type
)

Parameters

typeCode
Int32
The type code.
type
Type
The type.

Return Value

true if the type code has been registered successfully, otherwise false.

Exceptions

ExceptionCondition
System..::..ArgumentNullException If type is null.
System..::..ArgumentException If a different type code already registered for type.

See Also