Gets the BinaryType with the specified length.

Namespace: NHibernate.Type
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public static NullableType GetBinaryType(
	int length
)
Visual Basic
Public Shared Function GetBinaryType ( _
	length As Integer _
) As NullableType
Visual C++
public:
static NullableType^ GetBinaryType(
	int length
)

Parameters

length
Type: System..::..Int32
The length of the data to store in the database.

Return Value

A BinaryType

Remarks

In addition to returning the BinaryType it will also ensure that it has been added to the basicNameMap with the keys Byte[](length) and NHibernate.Type.BinaryType(length).

See Also