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.