Delen via


JobTarget Class

Definition

A job target, for example a specific database or a container of databases that is evaluated during job execution.

public class JobTarget
type JobTarget = class
Public Class JobTarget
Inheritance
JobTarget

Constructors

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.

Properties

DatabaseName

Gets or sets the target database name.

ElasticPoolName

Gets or sets the target elastic pool name.

MembershipType

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

RefreshCredential

Gets or sets 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.

ServerName

Gets or sets the target server name.

ShardMapName

Gets or sets the target shard map.

Type

Gets or sets the target type. Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', 'SqlServer'

Methods

Validate()

Validate the object.

Applies to