语言

IDTSVariables100.Add(String, Boolean, String, Object) 方法

定义

将 IDTSVariable100 对象添加到集合中。

public:
 Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSVariable100 ^ Add(System::String ^ bstrName, bool bReadOnly, System::String ^ bstrNamespace, System::Object ^ vValue);
[System.Runtime.InteropServices.DispId(2)]
public Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSVariable100 Add(string bstrName, bool bReadOnly, string bstrNamespace, object vValue);
[<System.Runtime.InteropServices.DispId(2)>]
abstract member Add : string * bool * string * obj -> Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSVariable100
Public Function Add (bstrName As String, bReadOnly As Boolean, bstrNamespace As String, vValue As Object) As IDTSVariable100

参数

bstrName
String

要添加到集合中的包、任务或容器变量名称。

bReadOnly
Boolean

真表示该变量为只读;否则,就是假的。

bstrNamespace
String

变量的命名空间。

vValue
Object

变量的设计时值。

返回

将物品加入 IDTSVariable100 收藏。

属性

注解

有关详细信息,请参阅 Variables。

适用于