Share via


Variables 클래스

Contains a collection of Variables objects, which are accessed through several objects. This class cannot be inherited.

네임스페이스:  Microsoft.SqlServer.Dts.Runtime
어셈블리:  Microsoft.SqlServer.ManagedDTS.dll의 Microsoft.SqlServer.ManagedDTS

구문

‘선언
Public NotInheritable Class Variables _
    Inherits DTSReadOnlyCollectionBase
‘사용 방법
Dim instance As Variables
public sealed class Variables : DTSReadOnlyCollectionBase
public ref class Variables sealed : public DTSReadOnlyCollectionBase
[<SealedAttribute>]
type Variables =  
    class
        inherit DTSReadOnlyCollectionBase
    end
public final class Variables extends DTSReadOnlyCollectionBase

주의

Integration Services (SSIS) provides system variables and supports custom user variables. When you create a new package, add a container or a task to the package, or create an event handler, SSIS automatically includes a set of system variables for the item. System variables are always located in the System namespace. System variables contain useful information about the package and its containers, tasks, and event handlers. System variables contain information such as the name of the computer on which the package runs and the time the package starts. You can view the information that is contained in a system variable, but you cannot add to or update system variables.

You can also create custom variables for use in packages, containers, tasks, transformations, and precedence constraints. Custom variables can be created in the User namespace or a namespace of your choice. Custom variables can be used in the expressions that the For Loop container, the Derived Column transformation, the Conditional Split transformation, and precedence constraints may contain. For more information, see 패키지에서 변수 사용.

Every container in the SSIS object model has a Variables collection. This collection is accessible to each child of the container. A variable is accessed from the collection by using its name or its index. The Variables collection on a container represents an aggregation of the variables in the collection of its parent. The Variables collection of the Package class is visible to all objects in the package, providing a globally visible collection. Conversely, the variables contained in a task are limited in scope and visibility, and are only visible by the task.

중요 정보중요

The Variables is used with the Runtime classes. If you are using data flow components (Microsoft.SqlServer.Dts.Pipeline), you may be required to use the IDTSVariables100. To know which variables collection to use, see the documentation for the object you are acquiring variables on, and verify the return value.

상속 계층 구조

System. . :: . .Object
  Microsoft.SqlServer.Dts.Runtime. . :: . .DTSReadOnlyCollectionBase
    Microsoft.SqlServer.Dts.Runtime..::..Variables

스레드로부터의 안전성

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