Share via


DacCompilationUnit.TargetSelectionPolicy Property

Gets or sets the server selection policy to compile into the DAC type.

Namespace:  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)

Syntax

'Declaration
Public Property TargetSelectionPolicy As Policy
    Get
    Set
'Usage
Dim instance As DacCompilationUnit
Dim value As Policy

value = instance.TargetSelectionPolicy

instance.TargetSelectionPolicy = value
public Policy TargetSelectionPolicy { get; set; }
public:
property Policy^ TargetSelectionPolicy {
    Policy^ get ();
    void set (Policy^ value);
}
member TargetSelectionPolicy : Policy with get, set
function get TargetSelectionPolicy () : Policy
function set TargetSelectionPolicy (value : Policy)

Property Value

Type: Microsoft.SqlServer.Management.Dmf.Policy
A Policy object representing the server selection policy compiled into the DAC type.

Remarks

The policy must be based on the IServerSelectionFacet class.

See Also

Reference

DacCompilationUnit Class

Microsoft.SqlServer.Management.Dac Namespace