共用方式為


CompareTo 方法

Compares the current object with the specified target set level.

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

語法

'宣告
<STraceConfigurationAttribute(SkipAutoTrace := True)> _
Public Function CompareTo ( _
    level As TargetSetLevel _
) As Integer
'用途
Dim instance As TargetSetLevel
Dim level As TargetSetLevel
Dim returnValue As Integer

returnValue = instance.CompareTo(level)
[STraceConfigurationAttribute(SkipAutoTrace = true)]
public int CompareTo(
    TargetSetLevel level
)
[STraceConfigurationAttribute(SkipAutoTrace = true)]
public:
virtual int CompareTo(
    TargetSetLevel^ level
) sealed
[<STraceConfigurationAttribute(SkipAutoTrace = true)>]
abstract CompareTo : 
        level:TargetSetLevel -> int 
[<STraceConfigurationAttribute(SkipAutoTrace = true)>]
override CompareTo : 
        level:TargetSetLevel -> int 
public final function CompareTo(
    level : TargetSetLevel
) : int

參數

傳回值

型別:System. . :: . .Int32
A Int32 value that specifies the difference between target set levels.

實作

IComparable< (Of < ( <'T> ) > ) >. . :: . .CompareTo(T)

備註

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。