Udostępnij przez


Metoda PolicyStoreUpgradeSession.IsUpgradeRequiredOnType

Określa, czy uaktualnienie jest wymagane dla określonego typu i określonego pliku.

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

Składnia

'Deklaracja
Public Overrides Function IsUpgradeRequiredOnType ( _
    instanceType As String, _
    fileVersion As Integer _
) As Boolean
'Użycie
Dim instance As PolicyStoreUpgradeSession
Dim instanceType As String
Dim fileVersion As Integer
Dim returnValue As Boolean

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

Parametry

Wartość zwracana

Typ: System.Boolean
A Boolean wartość określająca, czy wymagane jest uaktualnienie.
Jeśli True, wymagane jest uaktualnienie.W przeciwnym razie jest używana wartość False.