Creates and adds a PkgVariable to the end of the collection.
命名空间: Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask
程序集: Microsoft.SqlServer.Exec80PackageTask (in microsoft.sqlserver.exec80packagetask.dll)
语法
声明
Public Function Add ( _
name As String, _
datatype As String, _
val As Object _
) As PkgVariable
public PkgVariable Add (
string name,
string datatype,
Object val
)
public:
PkgVariable^ Add (
String^ name,
String^ datatype,
Object^ val
)
public PkgVariable Add (
String name,
String datatype,
Object val
)
public function Add (
name : String,
datatype : String,
val : Object
) : PkgVariable
参数
- name
The name of the PkgVariable to be added.
- datatype
The data type of the PkgVariable to be added.
- val
The value of the PkgVariable to be added.
返回值
A new PkgVariable.
线程安全
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 的硬件和软件要求。
请参阅
参考
VariablesCollection Class
VariablesCollection Members
Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask Namespace