共用方式為


IsUpgradeRequiredOnType 方法

Retrieves a value that indicates whether an upgrade is required on the Type.不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

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

語法

'宣告
Public Overridable Function IsUpgradeRequiredOnType ( _
    instanceType As String, _
    fileVersion As Integer _
) As Boolean
'用途
Dim instance As UpgradeSession
Dim instanceType As String
Dim fileVersion As Integer
Dim returnValue As Boolean

returnValue = instance.IsUpgradeRequiredOnType(instanceType, _
    fileVersion)
public virtual bool IsUpgradeRequiredOnType(
    string instanceType,
    int fileVersion
)
public:
virtual bool IsUpgradeRequiredOnType(
    String^ instanceType, 
    int fileVersion
)
abstract IsUpgradeRequiredOnType : 
        instanceType:string * 
        fileVersion:int -> bool 
override IsUpgradeRequiredOnType : 
        instanceType:string * 
        fileVersion:int -> bool 
public function IsUpgradeRequiredOnType(
    instanceType : String, 
    fileVersion : int
) : boolean

參數

傳回值

型別:System. . :: . .Boolean
true if upgrade is required; otherwise, false.