IDTSVariables100.Add 方法
此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。
Adds a IDTSVariable100 object to the collection.
命名空间: Microsoft.SqlServer.Dts.Runtime.Wrapper
程序集: Microsoft.SqlServer.DTSRuntimeWrap(在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)
语法
声明
Function Add ( _
bstrName As String, _
bReadOnly As Boolean, _
bstrNamespace As String, _
vValue As Object _
) As IDTSVariable100
用法
Dim instance As IDTSVariables100
Dim bstrName As String
Dim bReadOnly As Boolean
Dim bstrNamespace As String
Dim vValue As Object
Dim returnValue As IDTSVariable100
returnValue = instance.Add(bstrName, bReadOnly, _
bstrNamespace, vValue)
IDTSVariable100 Add(
string bstrName,
bool bReadOnly,
string bstrNamespace,
Object vValue
)
IDTSVariable100^ Add(
[InAttribute] String^ bstrName,
[InAttribute] bool bReadOnly,
[InAttribute] String^ bstrNamespace,
[InAttribute] Object^ vValue
)
abstract Add :
bstrName:string *
bReadOnly:bool *
bstrNamespace:string *
vValue:Object -> IDTSVariable100
function Add(
bstrName : String,
bReadOnly : boolean,
bstrNamespace : String,
vValue : Object
) : IDTSVariable100
参数
- bstrName
类型:System.String
The name of the package, task, or container variable to add to the collection.
- bReadOnly
类型:System.Boolean
true to indicate that the variable is read-only; otherwise, false.
- bstrNamespace
类型:System.String
The namespace for the variable.
- vValue
类型:System.Object
The design-time value of the variable.
返回值
类型:Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSVariable100
The added IDTSVariable100 object to the collection.
注释
For more information, see Variables.