Loe inglise keeles

Jagamisviis:


NotOutputBufferException Class

Definition

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

C#
[System.Serializable]
public class NotOutputBufferException : ApplicationException
Inheritance
NotOutputBufferException
Attributes

Examples

The following code example generates a NotOutputBufferException.

C#
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

Toode Versioonid
SQL Server .NET SDK 2016, 2017, 2019