IDTSVariables100.Add(String, Boolean, String, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 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
 
如果为 true,则指示变量为只读;否则为 false。
- bstrNamespace
 - String
 
变量的命名空间。
- vValue
 - Object
 
变量的设计时值。
返回
已添加到集合的 IDTSVariable100 对象。
- 属性
 
注解
有关详细信息,请参阅 Variables。