BufferColumn.MaxLength Field

Indicates the maximum number of characters or digits that will fit in the PipelineBuffer column.

Namespace:  Microsoft.SqlServer.Dts.Pipeline
Assembly:  Microsoft.SqlServer.PipelineHost (in Microsoft.SqlServer.PipelineHost.dll)

Syntax

'Declaration
Public MaxLength As Integer
'Usage
Dim instance As BufferColumn
Dim value As Integer

value = instance.MaxLength

instance.MaxLength = value
public int MaxLength
public:
int MaxLength
val mutable MaxLength: int
public var MaxLength : int

Remarks

The MaxLength field applies to the DT_STR, DT_TEXT, DT_WSTR, and DT_BYTES data types.

The PipelineBuffer throws a DoesNotFitBufferException when MaxLength is exceeded.