Bagikan melalui


NotOutputBufferException Kelas

Definisi

Pengecualian yang dilemparkan ketika metode yang dibatasi untuk Output objek dipanggil pada InputPipelineBuffer.

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

Contoh

Contoh kode berikut menghasilkan 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();  
}  
}  
}  

Keterangan

Metode berikut dibatasi untuk PipelineBuffer objek dalam Output mode:

Konstruktor

NotOutputBufferException()

Menginisialisasi instans baru kelas NotOutputBufferException.

Berlaku untuk