共用方式為


ValidateTargetSelectionPolicy 方法

確認 DAC 類型的伺服器選取原則確實有效。

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

語法

'宣告
Public Shared Sub ValidateTargetSelectionPolicy ( _
    targetSelectionPolicy As Policy _
)
'用途
Dim targetSelectionPolicy As Policy

DacType.ValidateTargetSelectionPolicy(targetSelectionPolicy)
public static void ValidateTargetSelectionPolicy(
    Policy targetSelectionPolicy
)
public:
static void ValidateTargetSelectionPolicy(
    Policy^ targetSelectionPolicy
)
static member ValidateTargetSelectionPolicy : 
        targetSelectionPolicy:Policy -> unit 
public static function ValidateTargetSelectionPolicy(
    targetSelectionPolicy : Policy
)

參數

備註

Verifies that the server selection policy has a valid condition and refers to the server selection facet.