PipelineComponent.BufferTypeToDataRecordType Method
Returns a managed data type based on an Integration Services data type.
This API is not CLS-compliant.
Namespace: Microsoft.SqlServer.Dts.Pipeline
Assembly: Microsoft.SqlServer.PipelineHost (in Microsoft.SqlServer.PipelineHost.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Protected Shared Function BufferTypeToDataRecordType ( _
type As DataType _
) As Type
'Usage
Dim type As DataType
Dim returnValue As Type
returnValue = PipelineComponent.BufferTypeToDataRecordType(type)
[CLSCompliantAttribute(false)]
protected static Type BufferTypeToDataRecordType(
DataType type
)
[CLSCompliantAttribute(false)]
protected:
static Type^ BufferTypeToDataRecordType(
DataType type
)
[<CLSCompliantAttribute(false)>]
static member BufferTypeToDataRecordType :
type:DataType -> Type
protected static function BufferTypeToDataRecordType(
type : DataType
) : Type
Parameters
- type
Type: Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType
A value from the DataType enumeration.
Return Value
Type: System.Type
The managed type that maps to an Integration Services DataType.
Remarks
This helper function gets the managed type that corresponds to an Integration Services DataType. It is typically used in concert with the ConvertBufferDataTypeToFitManaged method.
For more information, see Working with Data Types in the Data Flow.
Warning
Developers should use the data type mapping methods of the the PipelineComponent class with caution, and may want to code data type mapping methods of their own that are more suited to the unique needs of their custom components. The existing methods do not consider numeric precision or scale, or other properties closely related to the data type itself. Microsoft may modify or remove these methods, or modify the mappings that they perform, in a future version of Integration Services.