Share via


JobTarget Constructors

Definition

Overloads

JobTarget()

Initializes a new instance of the JobTarget class.

JobTarget(String, Nullable<JobTargetGroupMembershipType>, String, String, String, String, String)

Initializes a new instance of the JobTarget class.

JobTarget()

Initializes a new instance of the JobTarget class.

public JobTarget ();
Public Sub New ()

Applies to

JobTarget(String, Nullable<JobTargetGroupMembershipType>, String, String, String, String, String)

Initializes a new instance of the JobTarget class.

public JobTarget (string type, Microsoft.Azure.Management.Sql.Models.JobTargetGroupMembershipType? membershipType = default, string serverName = default, string databaseName = default, string elasticPoolName = default, string shardMapName = default, string refreshCredential = default);
new Microsoft.Azure.Management.Sql.Models.JobTarget : string * Nullable<Microsoft.Azure.Management.Sql.Models.JobTargetGroupMembershipType> * string * string * string * string * string -> Microsoft.Azure.Management.Sql.Models.JobTarget
Public Sub New (type As String, Optional membershipType As Nullable(Of JobTargetGroupMembershipType) = Nothing, Optional serverName As String = Nothing, Optional databaseName As String = Nothing, Optional elasticPoolName As String = Nothing, Optional shardMapName As String = Nothing, Optional refreshCredential As String = Nothing)

Parameters

type
String

The target type. Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', 'SqlServer'

membershipType
Nullable<JobTargetGroupMembershipType>

Whether the target is included or excluded from the group. Possible values include: 'Include', 'Exclude'

serverName
String

The target server name.

databaseName
String

The target database name.

elasticPoolName
String

The target elastic pool name.

shardMapName
String

The target shard map.

refreshCredential
String

The resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target.

Applies to