VariablesCollection.ToString Method
Returns a delimited string that represents the contents of the collection.
命名空間: Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask
組件: Microsoft.SqlServer.Exec80PackageTask (in microsoft.sqlserver.exec80packagetask.dll)
語法
'宣告
Public Overrides Function ToString As String
public override string ToString ()
public:
virtual String^ ToString () override
public String ToString ()
public override function ToString () : String
傳回值
A delimited string that contains the contents of the collection.
備註
The string returned by this method can be used in the LoadFromString method to load an entire collection of variables with a single method call.
The delimited string uses the following syntax:
return::= variable**;variable;**...
variable::=name**,datatype,**value
The name argument contains the name of the PkgVariable to be added.
The datatype argument contains the data type of the PkgVariable to be added.
The value argument contains the value of the PkgVariable to be added.
Literal comma (,) or semicolon (;) characters included as part of any argument must be prefaced with a backslash (\) character.
附註: |
---|
String variables that end in the backslash character have a single space character appended to them during the conversion process, to prevent the possibility that the semicolon used to terminate a variable could be misinterpreted as a literal semicolon character by the LoadFromString method. |
執行緒安全性
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