다음을 통해 공유


PipelineComponent.AddErrorOutput 메서드

Adds an IDTSOutput100 object and marks it as an error output by setting the IsErrorOut property to true.

네임스페이스:  Microsoft.SqlServer.Dts.Pipeline
어셈블리:  Microsoft.SqlServer.PipelineHost(Microsoft.SqlServer.PipelineHost.dll)

구문

‘선언
Public Sub AddErrorOutput ( _
    strOutputName As String, _
    lInputID As Integer, _
    lExclusionGroup As Integer _
)
‘사용 방법
Dim instance As PipelineComponent 
Dim strOutputName As String 
Dim lInputID As Integer 
Dim lExclusionGroup As Integer

instance.AddErrorOutput(strOutputName, _
    lInputID, lExclusionGroup)
public void AddErrorOutput(
    string strOutputName,
    int lInputID,
    int lExclusionGroup
)
public:
void AddErrorOutput(
    String^ strOutputName, 
    int lInputID, 
    int lExclusionGroup
)
member AddErrorOutput : 
        strOutputName:string * 
        lInputID:int * 
        lExclusionGroup:int -> unit
public function AddErrorOutput(
    strOutputName : String, 
    lInputID : int, 
    lExclusionGroup : int
)

매개 변수

  • strOutputName
    유형: System.String
    Specifies the name of the output.
  • lExclusionGroup
    유형: System.Int32
    Specifies the exclusion group of the output.

주의

This helper function adds a new output to the IDTSOutputCollection100 of your component. It sets the IsErrorOut property to true, and assigns the ExclusionGroup property specified by lExclusionGroup.

Error outputs are generally added during ProvideComponentProperties.

For more information, see 데이터 흐름 구성 요소에서 오류 출력 사용.

The following example shows how to add an error IDTSOutput100 to a component.

    public override void ProvideComponentProperties()
    {
      IDTSInput100 input = ComponentMetaData.InputCollection.New();
      input.Name = "SampleComponentInput";

      IDTSOutput100 output = ComponentMetaData.OutputCollection.New();
      output.Name = "SampleComponentOutput";
      output.SynchronousInputID = input.ID;
      output.ExclusionGroup = 1;

      this.AddErrorOutput("SampleComponentErrorOutput", input.ID, output.ExclusionGroup);

}

Public Overrides Sub ProvideComponentProperties()

    Dim input As IDTSInput100 = ComponentMetaData.InputCollection.New()
    input.Name = "SampleComponentInput"

    Dim output As IDTSOutput100 = ComponentMetaData.OutputCollection.New()
    output.Name = "SampleComponentOutput"
    output.SynchronousInputID = input.ID
    output.ExclusionGroup = 1

    Me.AddErrorOutput("SampleComponentErrorOutput", _
      input.ID, output.ExclusionGroup)

  End Sub

참고 항목

참조

PipelineComponent 클래스

Microsoft.SqlServer.Dts.Pipeline 네임스페이스