Udostępnij przez


Metoda UpgradeSession.IsUpgradeRequiredOnType

Pobiera wartość wskazująca, czy wymagane jest uaktualnienie typu.Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Sdk.Sfc
Zestaw:  Microsoft.SqlServer.Management.Sdk.Sfc (w Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Składnia

'Deklaracja
Public Overridable Function IsUpgradeRequiredOnType ( _
    instanceType As String, _
    fileVersion As Integer _
) As Boolean
'Użycie
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

Parametry

  • instanceType
    Typ: System.String
    Ciąg, który reprezentuje typ wystąpienie używane.
  • fileVersion
    Typ: System.Int32
    Wartość całkowitą typu wersja pliku.

Wartość zwracana

Typ: System.Boolean
TRUE Jeśli uaktualnianie jest wymagane; w przeciwnym razie false.