Share via


ScriptOption.AgentJobId Property

Gets an object that specifies whether to include SQL Server Agent alerts and jobs in the script. 

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

Syntax

'Declaration
Public Shared ReadOnly Property AgentJobId As ScriptOption
    Get
'Usage
Dim value As ScriptOption

value = ScriptOption.AgentJobId
public static ScriptOption AgentJobId { get; }
public:
static property ScriptOption^ AgentJobId {
    ScriptOption^ get ();
}
static member AgentJobId : ScriptOption
static function get AgentJobId () : ScriptOption

Property Value

Type: Microsoft.SqlServer.Management.Smo.ScriptOption
A ScriptOption object that represents AgentJobId in the scripting options.

Examples

Scripting