Share via


NotOutputBufferException Class

The exception that is thrown when a method that is restricted to Output objects is called on an Input PipelineBuffer.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class NotOutputBufferException _
    Inherits ApplicationException
'Usage
Dim instance As NotOutputBufferException
[SerializableAttribute]
public class NotOutputBufferException : ApplicationException
[SerializableAttribute]
public ref class NotOutputBufferException : public ApplicationException
[<SerializableAttribute>]
type NotOutputBufferException =  
    class 
        inherit ApplicationException 
    end
public class NotOutputBufferException extends ApplicationException

The NotOutputBufferException type exposes the following members.

Constructors

  Name Description
Public method NotOutputBufferException Initializes a new instance of the NotOutputBufferException class.

Top

Properties

  Name Description
Public property Data (Inherited from Exception.)
Public property HelpLink (Inherited from Exception.)
Public property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message (Inherited from Exception.)
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Security Critical. (Inherited from Exception.)
Public method GetType (Inherited from Exception.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Exception.)

Top

Events

  Name Description
Protected event SerializeObjectState (Inherited from Exception.)

Top

Remarks

The following methods are restricted to PipelineBuffer objects in Output mode:

Examples

The following code example generates a NotOutputBufferException.

using System;
using Microsoft.SqlServer.Dts.Pipeline;
using Microsoft.SqlServer.Dts.Pipeline.Design;

namespace DtsDocumentation
{
[DtsPipelineComponent(DisplayName = "MyComponent")]
public class Class1 : PipelineComponent
{
public override void ProcessInput(int inputID, PipelineBuffer buffer)
{
//Causes an NotOutputBufferException
buffer.AddRow();
}
}
}

Thread Safety

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

See Also

Reference

Microsoft.SqlServer.Dts.Pipeline Namespace