Udostępnij za pośrednictwem


NotOutputBufferException Class

Definition

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

public ref class NotOutputBufferException : ApplicationException
[System.Serializable]
public class NotOutputBufferException : ApplicationException
[<System.Serializable>]
type NotOutputBufferException = class
    inherit ApplicationException
Public Class NotOutputBufferException
Inherits ApplicationException
Inheritance
NotOutputBufferException
Attributes

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();  
}  
}  
}  

Remarks

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

Constructors

NotOutputBufferException()

Initializes a new instance of the NotOutputBufferException class.

Applies to