다음을 통해 공유


ScriptComponent.ReadWriteVariables Property

Returns the collection of ReadWriteVariables available to the component.

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

구문

‘선언
Public ReadOnly Property ReadWriteVariables As IDTSVariables90
public IDTSVariables90 ReadWriteVariables { get; }
public:
property IDTSVariables90^ ReadWriteVariables {
    IDTSVariables90^ get ();
}
/** @property */
public IDTSVariables90 get_ReadWriteVariables ()
public function get ReadWriteVariables () : IDTSVariables90

속성 값

An IDTSVariables90 that contains the collection of ReadWriteVariables.

ms198848.note(ko-kr,SQL.90).gif중요:
The collection of ReadWriteVariables is only available in the PostExecute method.

주의

The Script component developer makes variables available to the Script component for read/write access by listing them in the ReadWriteVariables field in the Script Transformation Component Editor.

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.

The developer does not have to use the ReadWriteVariables property, because the ScriptMain class provides the Variables property for convenient access to both read-only and read/write variables through a single property. The Variables property is a property of the autogenerated UserComponent base class, not of the ScriptComponent class.

The following code sample demonstrates how the Script component developer might use the ReadOnlyVariables and ReadWriteVariables properties.

  Dim localInteger As Integer
  Dim localString As String

  If Me.ReadOnlyVariables.Contains("MyIntegerVariable") Then
    localInteger = CType(Me.ReadOnlyVariables("MyIntegerVariable").Value, Integer)
  End If

  If Me.ReadWriteVariables.Contains("MyStringVariable") Then
    Me.ReadWriteVariables("MyStringVariable").Value = localString
  End If

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

ScriptComponent Class
ScriptComponent Members
Microsoft.SqlServer.Dts.Pipeline Namespace