Поделиться через


Метод UpgradeSession.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

Параметры

  • instanceType
    Тип: System.String
    A string that represents the type of instance used.
  • fileVersion
    Тип: System.Int32
    An integer type value for the file version.

Возвращаемое значение

Тип: System.Boolean
true if upgrade is required; otherwise, false.

См. также

Справочник

UpgradeSession Класс

Пространство имен Microsoft.SqlServer.Management.Sdk.Sfc