共用方式為


ToString 方法

Gets a string representation of the key for the purpose of a default comparison.

命名空間:  Microsoft.SqlServer.Management.Collector
組件:  Microsoft.SqlServer.Management.Collector (在 Microsoft.SqlServer.Management.Collector.dll 中)

語法

'宣告
Public Overrides Function ToString As String
'用途
Dim instance As CollectionItem..::..Key
Dim returnValue As String

returnValue = instance.ToString()
public override string ToString()
public:
virtual String^ ToString() override
abstract ToString : unit -> string 
override ToString : unit -> string 
public override function ToString() : String

傳回值

型別:System. . :: . .String
A String value that is the string representation of the key.

備註

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.