Поделиться через


UnsupportedValueTypeForTextStreamColumnException Class

The exception that is thrown when the value of the type that is being assigned to a column in a PipelineBuffer is not a string or byte array.

Пространство имен: Microsoft.SqlServer.Dts.Pipeline
Сборка: Microsoft.SqlServer.PipelineHost (in microsoft.sqlserver.pipelinehost.dll)

Синтаксис

'Декларация
Public Class UnsupportedValueTypeForTextStreamColumnException
    Inherits ApplicationException
public class UnsupportedValueTypeForTextStreamColumnException : ApplicationException
public ref class UnsupportedValueTypeForTextStreamColumnException : public ApplicationException
public class UnsupportedValueTypeForTextStreamColumnException extends ApplicationException
public class UnsupportedValueTypeForTextStreamColumnException extends ApplicationException

Замечания

This exception occurs when assigning data to a DT_TEXT or DT_NTEXT column in a PipelineBuffer using the array indexer method.

Inheritance Hierarchy

System.Object
   System.Exception
     System.ApplicationException
      Microsoft.SqlServer.Dts.Pipeline.UnsupportedValueTypeForTextStreamColumnException

Пример

The following example shows how this exception occurs when the first column in the buffer is DT_TEXT or DT_NTEXT.

public override void ProcessInput(int inputID, PipelineBuffer buffer)
{
    if(!buffer.EndOfRowset)
    {
        buffer[0] = 1;
    }
}
Public Overloads Overrides Sub ProcessInput(ByVal inputID As Integer, ByVal buffer As PipelineBuffer) 
 If Not buffer.EndOfRowset Then 
   buffer(0) = 1 
 End If 
End Sub

Синхронизация потоков

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

UnsupportedValueTypeForTextStreamColumnException Members
Microsoft.SqlServer.Dts.Pipeline Namespace