ScriptComponent 클래스

Serves as the base class for the read-only UserComponent class generated by the Script component in the ComponentWrapper project item in a Script component project.

상속 계층

System.Object
  Microsoft.SqlServer.Dts.Pipeline.ScriptComponent

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

구문

‘선언
Public Class ScriptComponent
‘사용 방법
Dim instance As ScriptComponent
public class ScriptComponent
public ref class ScriptComponent
type ScriptComponent =  class end
public class ScriptComponent

ScriptComponent 유형에서 다음 멤버를 표시합니다.

생성자

  이름 설명
공용 메서드 ScriptComponent Initializes a new instance of the ScriptComponent class.

맨 위로 이동

속성

  이름 설명
공용 속성 ComponentMetaData Returns a reference to the component definition.
공용 속성정적 멤버 EvaluatorContext Gets the script component evaluator context.
공용 속성 InputIDToNameMap Gets the input identifier to name map.
공용 속성 OutputNameMap Gets the output name map.
공용 속성 ReadOnlyVariables Returns the collection of ReadOnlyVariables available to the component.
공용 속성 ReadWriteVariables Returns the collection of ReadWriteVariables available to the component.
공용 속성 VariableDispenser Returns an object that the data flow uses internally to work with variables.

맨 위로 이동

메서드

  이름 설명
공용 메서드 AcquireConnections Obtains a connection or connection information by using a connection manager.
공용 메서드 Equals (Object에서 상속됨)
보호된 메서드 Finalize (Object에서 상속됨)
공용 메서드 GetColumnIndexes 인프라입니다. Gets the collection of column index for the script component.
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드정적 멤버 GetOutputID Returns the output ID that has a specified output name.
공용 메서드 GetType (Object에서 상속됨)
공용 메서드 Log Writes a log entry.
보호된 메서드 MemberwiseClone (Object에서 상속됨)
공용 메서드 PostExecute Executes custom code that must run after the Script component has processed its inputs and outputs.
공용 메서드 PreExecute Executes custom code that must run before the Script component has processed its inputs and outputs.
공용 메서드 PrimeOutput Prepares the outputs in Script components, such as sources and transformations with asynchronous outputs, that add new rows to the output buffers.
공용 메서드 ProcessInput(Int32, PipelineBuffer) Processes the inputs in Script components, such as transformations and destinations, that receive inputs from upstream components.
공용 메서드 ProcessInput(Int32, String, PipelineBuffer, OutputNameMap) Processes inputs in the script components.
공용 메서드 ReleaseConnections Releases a connection to a connection manager.
공용 메서드 SetBufferColumnIndexes 인프라입니다. Sets the index of the buffer columns.
공용 메서드 ToString (Object에서 상속됨)

맨 위로 이동

주의

The ScriptComponent class serves as the base class for the read-only UserComponent class, which is generated by the Script component in the ComponentWrapper project item in a Script component project. The UserComponent class serves as the base class for the ScriptMain class, in which the developer writes custom code, and provides the developer with a set of methods for working with the component's inputs and outputs. It also provides strongly-typed accessor properties for variables and connection managers available to the component.

The Script component developer does not use the ScriptComponent class directly, but indirectly, by coding the methods and properties of the ScriptMain class, which inherits from ScriptComponent through the UserComponent class.

For more information, see 스크립트 구성 요소 코딩 및 디버깅 and 스크립트 구성 요소 개체 모델 이해.

The following code sample demonstrates all the code that a developer has to write to create a transformation with synchronous outputs by using the Script component. For more information on this sample, see 스크립트 구성 요소를 사용하여 동기 변환 만들기.

Public Class ScriptMain
    Inherits UserComponent

    Public Overrides Sub MyAddressInput_ProcessInputRow(ByVal Row As MyAddressInputBuffer)

        Row.City = UCase(Row.City)

    End Sub

End Class

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

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