Registers a table binding for the type specified.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public bool RegisterTableBinding(
	Type type,
	ITableBinding tableBinding
)
Public Function RegisterTableBinding ( _
	type As Type, _
	tableBinding As ITableBinding _
) As Boolean
public:
bool RegisterTableBinding(
	Type^ type, 
	ITableBinding^ tableBinding
)

Parameters

type
Type
The entity type.
tableBinding
ITableBinding
The key binding.

Return Value

true if the table binding has been added, false if an existing table binding has been replaced.

Exceptions

ExceptionCondition
System..::..ArgumentNullException If type is null.
System..::..ArgumentNullException If tableBinding is null.

See Also