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
)
參數
- targetSelectionPolicy
型別:Microsoft.SqlServer.Management.Dmf. . :: . .Policy
Policy 物件,代表為 DAC 類型所定義的伺服器選取原則。
備註
Verifies that the server selection policy has a valid condition and refers to the server selection facet.