Condividi tramite


Classe Job

The Job class represents a Microsoft SQL Server Agent job.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class Job _
    Inherits AgentObjectBase _
    Implements IAlterable, ICreatable, IDroppable, IRenamable,  _
    IScriptable
'Utilizzo
Dim instance As Job
public sealed class Job : AgentObjectBase, IAlterable, 
    ICreatable, IDroppable, IRenamable, IScriptable
public ref class Job sealed : public AgentObjectBase, 
    IAlterable, ICreatable, IDroppable, IRenamable, IScriptable
[<SealedAttribute>]
type Job =  
    class
        inherit AgentObjectBase
        interface IAlterable
        interface ICreatable
        interface IDroppable
        interface IRenamable
        interface IScriptable
    end
public final class Job extends AgentObjectBase implements IAlterable, ICreatable, IDroppable, IRenamable, IScriptable

Nel tipo Job sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico Job() () () () Initializes a new instance of the Job class.
Metodo pubblico Job(JobServer, String) Initializes a new instance of the Job class on the specified instance of Microsoft SQL Server Agent and with the specified name.
Metodo pubblico Job(JobServer, String, Int32) Initializes a new instance of the Job class on the specified instance of SQL Server Agent and with the specified name and category

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica Category Gets or sets the category to which the job belongs.
Proprietà pubblica CategoryID Gets the ID value that uniquely identifies the job category.
Proprietà pubblica CategoryType Gets or sets the type of category, with respect to local or multiserver jobs.
Proprietà pubblica CurrentRunRetryAttempt Gets the number of times Microsoft SQL Server Agent has attempted to run the job unsuccessfully.
Proprietà pubblica CurrentRunStatus Gets the current execution status of the job.
Proprietà pubblica CurrentRunStep Gets information about the job step that is currently running.
Proprietà pubblica DateCreated Gets the date and time when the job was created.
Proprietà pubblica DateLastModified Gets the date and time when the job was last modified.
Proprietà pubblica DeleteLevel Gets or sets the completion action that determines whether to delete the job definition when the job finishes execution.
Proprietà pubblica Description Gets or sets the textual description of the job.
Proprietà pubblica EmailLevel Gets or sets the completion action that determines whether to send an e-mail notification to an operator when the job finishes execution.
Proprietà pubblica EventLogLevel Gets or sets the completion action that determines whether to generate an operating system event log entry when the job finishes execution.
Proprietà protetta ExecuteForScalar Ottiene o imposta il valore della proprietà Boolean che specifica se l'oggetto viene impostato su Esegui per l'opzione scalare. Ereditato da SqlSmoObject.
Proprietà pubblica HasSchedule Gets the Boolean property value that specifies whether the job has at least one schedule.
Proprietà pubblica HasServer Gets the Boolean property value that specifies whether the job has a target server assigned for multiple-server operations.
Proprietà pubblica HasStep Gets the Boolean property value that specifies whether the job has at least one job step.
Proprietà pubblica IsEnabled Gets or sets the Boolean property value that specifies whether the job is enabled.
Proprietà protetta IsTouched Ottiene il valore della proprietà Boolean che specifica se le proprietà dell'oggetto sono state aggiornate ma non sono ancora persistenti nel server. Ereditato da SqlSmoObject.
Proprietà pubblica JobID Gets the job ID value.
Proprietà pubblica JobSchedules Gets a collection of JobSchedule objects that represent the schedules assigned to the job.
Proprietà pubblica JobSteps Gets a collection of JobStep objects that represent the job steps defined for the job.
Proprietà pubblica JobType Gets the job type, which specifies whether the job is local or multiserver.
Proprietà pubblica LastRunDate Gets the date and time when the job was last run.
Proprietà pubblica LastRunOutcome Gets the result of the job from the last time it completed execution.
Proprietà pubblica Name Gets or sets the name of the Job. Esegue l'override di NamedSmoObject. . :: . .Name.
Proprietà pubblica NetSendLevel Gets or sets the completion action that determines whether to net-send a notification to an operator when the job finishes execution.
Proprietà pubblica NextRunDate Gets the date and time when the job is next scheduled to run.
Proprietà pubblica NextRunScheduleID Gets the ID value of the schedule that is responsible for the next execution of the job.
Proprietà protetta ObjectInSpace Ottiene il valore della proprietà Boolean che specifica se l'oggetto esiste in isolamento o se è connesso direttamente o indirettamente all'istanza di SQL Server. Ereditato da SqlSmoObject.
Proprietà pubblica OperatorToEmail Gets or sets the operator that receives notification by e-mail when the job finishes execution.
Proprietà pubblica OperatorToNetSend Gets or sets the operator that receives a net-send notification when the job finishes execution.
Proprietà pubblica OperatorToPage Gets or sets the operator that receives a pager notification when the job finishes execution.
Proprietà pubblica OriginatingServer Gets the name of the server that is acting as the master server in a multiserver job.
Proprietà pubblica OwnerLoginName Gets or sets the owner of the job.
Proprietà pubblica PageLevel Gets or sets the completion action that determines whether to send a pager notification to an operator when the job finishes execution.
Proprietà pubblica Parent Gets or sets the JobServer object that is the parent of the Job object.
Proprietà pubblica Properties Ottiene una raccolta di oggetti Property che rappresentano le proprietà dell'oggetto. Ereditato da SqlSmoObject.
Proprietà protetta ScalarResult Ottiene il risultato scalare per l'oggetto a cui si fa riferimento. Ereditato da SqlSmoObject.
Proprietà pubblica StartStepID Gets or sets the ID value of the first job step in the sequence to be executed.
Proprietà pubblica State Gets the state of the referenced object. Ereditato da SmoObjectBase.
Proprietà pubblica Urn Ottiene il valore dell'indirizzo URN (Uniform Resource Name) che identifica in modo univoco l'oggetto. Ereditato da SqlSmoObject.
Proprietà pubblica UserData Gets or sets user-defined data associated with the referenced object. Ereditato da SmoObjectBase.
Proprietà pubblica VersionNumber Gets a system-maintained value that is incremented every time the job is modified.

In alto

Metodi

  Nome Descrizione
Metodo protetto AddDatabaseContext(StringCollection) Aggiungere il contesto del database alla raccolta di query identificate dal parametro queries. Ereditato da SqlSmoObject.
Metodo protetto AddDatabaseContext(StringCollection, ScriptingOptions) Aggiungere il contesto del database alla raccolta di query identificate dal parametro queries e utilizzando le opzioni di scripting specificate. Ereditato da SqlSmoObject.
Metodo pubblico AddSharedSchedule Adds a shared schedule to the Microsoft SQL Server Agent job.
Metodo pubblico Alter Updates any Job object property changes on an instance of Microsoft SQL Server. 
Metodo protetto AlterImpl Attiva l'evento modificato dall'oggetto. Ereditato da SqlSmoObject.
Metodo protetto AlterImplFinish Metodo chiamato quando l'evento modificato dall'oggetto viene completato. Ereditato da SqlSmoObject.
Metodo protetto AlterImplInit Metodo chiamato quando l'evento modificato dall'oggetto viene inizializzato. Ereditato da SqlSmoObject.
Metodo protetto AlterImplWorker Chiama i metodi Alter. Ereditato da SqlSmoObject.
Metodo pubblico ApplyToTargetServer Adds a server to the list of target servers maintained for the referenced Microsoft SQL Server Agent job.
Metodo pubblico ApplyToTargetServerGroup Adds one or more servers to the list of target servers maintained for the referenced Microsoft SQL Server Agent job.
Metodo protetto BindDefaultImpl Associa gli elementi predefiniti identificati dai parametri. Ereditato da SqlSmoObject.
Metodo protetto BindRuleImpl Associa lo schema della regola alla regola e alle colonne identificate dai parametri. Ereditato da SqlSmoObject.
Metodo protetto CheckCollation Verifica l'ordine delle opzioni di scripting mediante il metodo delle regole di confronto identificato dal parametro collationName. Ereditato da SqlSmoObject.
Metodo protetto CheckObjectState() () () () Convalida lo stato dell'oggetto a cui si fa riferimento. Ereditato da SqlSmoObject.
Metodo protetto CheckObjectState(Boolean) Convalida lo stato dell'oggetto a cui si fa riferimento con l'opzione che specifica di generare un'eccezione se l'oggetto non è stato ancora creato. Ereditato da SqlSmoObject.
Metodo protetto CheckObjectStateImpl Verifica lo stato di un oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto CheckVersion100 Verifica se la versione di SQL Server è SQL Server 2008. Ereditato da SqlSmoObject.
Metodo protetto CheckVersion80 Verifica la validità dell'oggetto in SQL Server 2000. Ereditato da SqlSmoObject.
Metodo protetto CheckVersion80SP3 Verifica la validità dell'oggetto in SQL Server 2000 SP3. Ereditato da SqlSmoObject.
Metodo protetto CheckVersion90 Verificare la validità dell'oggetto in SQL Server 2005. Ereditato da SqlSmoObject.
Metodo protetto CheckVersionBelow90 Verifica se la versione di SQL Server è precedente a SQL Server 2005. Ereditato da SqlSmoObject.
Metodo protetto CleanObject Imposta l'oggetto su uno stato non modificato. Ereditato da SqlSmoObject.
Metodo pubblico Create Creates a job on the instance of Microsoft SQL Server as defined by the Job object.
Metodo protetto CreateImpl Crea un oggetto con opzioni di scripting. Ereditato da SqlSmoObject.
Metodo protetto CreateImplFinish Metodo chiamato quando l'evento Create viene completato. Ereditato da SqlSmoObject.
Metodo protetto CreateImplInit Metodo chiamato quando l'evento Create viene inizializzato. Ereditato da SqlSmoObject.
Metodo pubblico DeleteJobStepLogs(DateTime) Deletes job step log files that are older than the specified date.
Metodo pubblico DeleteJobStepLogs(Int32) Deletes job step log files that are larger that the specified log ID number.
Metodo pubblico Discover Individua un elenco di tipo Object. Ereditato da SqlSmoObject.
Metodo pubblico Drop() () () () Removes an existing job.
Metodo pubblico Drop(Boolean) Removes an existing job.
Metodo protetto DropImpl Elimina un oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto DropImplWorker Chiama i metodi Drop. Ereditato da SqlSmoObject.
Metodo pubblico EnumAlerts Enumerates a list of Agent alerts that cause automated execution of the referenced job.
Metodo pubblico EnumHistory() () () () Enumerates a list of execution history associated with the referenced job.
Metodo pubblico EnumHistory(JobHistoryFilter) Enumerates a list of execution history associated with the referenced job.
Metodo pubblico EnumJobStepLogs() () () () Enumerates a list of job step log files for the referenced job.
Metodo pubblico EnumJobStepLogs(Int32) Enumerates a list of job step log files for the job step with the specified ID value.
Metodo pubblico EnumJobStepLogs(String) Enumerates a list of job step log files for the job step with the specified name.
Metodo pubblico EnumJobStepsByID Returns an array of JobStep objects that belong to the referenced job and that are ordered by ID value.
Metodo protetto EnumScriptImpl Enumera gli script specificati dal parametro so. Ereditato da SqlSmoObject.
Metodo protetto EnumScriptImplWorker Chiama i metodi che enumerano gli script specificati dal parametro so. Ereditato da SqlSmoObject.
Metodo protetto EnumScriptImplWorkerSOChanged Restituisce una stringa IEnumerable che descrive le opzioni di scripting per un oggetto. Ereditato da SqlSmoObject.
Metodo pubblico EnumTargetServers Enumerates a list of execution target servers that have been assigned to the referenced job.
Metodo pubblico Equals Ereditato da Object.
Metodo protetto ExecuteNonQuery Ereditato da SqlSmoObject.
Metodo protetto Finalize Ereditato da Object.
Metodo protetto FormatSqlVariant Formatta un oggetto come tipo SqlVariant. Ereditato da SqlSmoObject.
Metodo protetto GenerateDataSpaceFileStreamScript Genera uno script per creare file di dati. Ereditato da SqlSmoObject.
Metodo protetto GenerateDataSpaceScript Genera uno script per allocare spazio nel file di dati. Ereditato da SqlSmoObject.
Metodo protetto GetBindDefaultScript Ottiene lo script che associa le impostazioni predefinite specificate dai parametri defSchema e defName. Ereditato da SqlSmoObject.
Metodo protetto GetBindRuleScript Ottiene lo script che specifica le regole di associazione. Ereditato da SqlSmoObject.
Metodo protetto GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Assegna un parametro booleano dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Assegna una proprietà booleana dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetDateTimeParameter Assegna la proprietà datetime dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetDateTimeParameterAsInt Assegna la proprietà datetime dell'oggetto SqlSmoObject come valore intero se la proprietà datetime è diversa da null. Ereditato da SqlSmoObject.
Metodo protetto GetDBName Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Gets the database name that is associated with the object. Ereditato da AgentObjectBase.
Metodo protetto GetEnumParameter Assegna una proprietà di enumerazione dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetFragOptionString Ottiene un oggetto FragmentationOption come valore stringa. Ereditato da SqlSmoObject.
Metodo protetto GetGuidParameter Assegna una proprietà Guid dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo protetto GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Assegna un parametro dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Assegna un parametro dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetPropValue Ottiene un valore della proprietà dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetPropValueOptional Ottiene un valore della proprietà dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetPropValueOptionalAllowNull Ottiene un valore della proprietà dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetRealValue Ottiene un valore della proprietà dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetScriptingOptionsForCreate Ottiene l'oggetto ScriptingOptions per l'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetServerName Ottiene il nome dell'istanza di SQL Server a cui è associato l'oggetto. Ereditato da SqlSmoObject.
Metodo protetto GetServerObject Ottiene il server dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetSqlServerVersionName Ottiene il nome della versione dell'istanza di SQL Server a cui è associato l'oggetto. Ereditato da SqlSmoObject.
Metodo protetto GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Assegna un parametro stringa dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Assegna un parametro stringa dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetTimeSpanParameterAsInt Assegna un parametro periodo di tempo dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto GetUrnRecursive(StringBuilder) Assegna un oggetto Urn dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetUrnRecursive(StringBuilder, UrnIdOption) Assegna un oggetto Urn dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto ImplInitialize Inizializza i campi dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo pubblico Initialize() () () () Inizializza l'oggetto e forza il caricamento delle proprietà. Ereditato da SqlSmoObject.
Metodo pubblico Initialize(Boolean) Inizializza l'oggetto e forza il caricamento delle proprietà. Ereditato da SqlSmoObject.
Metodo pubblico Invoke Runs the job.
Metodo protetto IsObjectDirty Verifica se le proprietà dell'oggetto sono state modificate e se le modifiche non sono già persistenti nell'istanza di SQL Server. Ereditato da SqlSmoObject.
Metodo protetto IsObjectInitialized Verifica se l'oggetto è stato inizializzato. Ereditato da SqlSmoObject.
Metodo protetto IsObjectInSpace Verifica se l'oggetto è isolato o connesso all'istanza di SQL Server. Ereditato da SqlSmoObject.
Metodo protetto IsVersion80SP3 Determina se la versione di SQL Server è SQL Server 2000 con SP3. Ereditato da SqlSmoObject.
Metodo protetto IsVersion90AndAbove Determina se la versione di SQL Server è SQL Server 2005 o successiva. Ereditato da SqlSmoObject.
Metodo protetto MarkDropped Imposta l'oggetto SqlSmoState da eliminare. Ereditato da SqlSmoObject.
Metodo protetto MarkForDropImpl Imposta l'oggetto SqlSmoState da eliminare. Ereditato da SqlSmoObject.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo protetto PostAlter Metodo attivato dopo che l'oggetto SqlSmoObject viene modificato. Ereditato da SqlSmoObject.
Metodo protetto PostCreate Metodo attivato dopo la creazione dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto PostDrop Metodo attivato dopo l'eliminazione dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo pubblico PurgeHistory Removes system records maintaining execution history for the referenced job.
Metodo pubblico Refresh Aggiorna l'oggetto e recupera le proprietà al successivo accesso all'oggetto. Ereditato da SqlSmoObject.
Metodo pubblico RemoveAllJobSchedules() () () () Removes all shared and unshared schedules from the job.
Metodo pubblico RemoveAllJobSchedules(Boolean) Removes all unused schedules from the job.
Metodo pubblico RemoveAllJobSteps Removes all the job steps associated with the job.
Metodo pubblico RemoveFromTargetServer Removes an execution target server from the list of target servers maintained for a job.
Metodo pubblico RemoveFromTargetServerGroup Removes a group of execution target servers from the list of target servers maintained for a job.
Metodo pubblico RemoveSharedSchedule(Int32) Removes the specified shared schedule from the job.
Metodo pubblico RemoveSharedSchedule(Int32, Boolean) Removes the specified shared schedule from the job and keeps unused schedules.
Metodo pubblico Rename Renames the job.
Metodo protetto RenameImpl Identificato solo a scopo informativo. Non supportato. Non è garantita la compatibilità con le versioni future. Ereditato da NamedSmoObject.
Metodo protetto RenameImplWorker Identificato solo a scopo informativo. Non supportato. Non è garantita la compatibilità con le versioni future. Ereditato da NamedSmoObject.
Metodo pubblico Script() () () () Generates a Transact-SQL script that can be used to re-create the Microsoft SQL Server Agent job.
Metodo pubblico Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the Microsoft SQL Server Agent job as specified by the scripting options.
Metodo protetto ScriptAlter Modifica l'oggetto SqlSmoObject in base ai parametri. Ereditato da SqlSmoObject.
Metodo protetto ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. Ereditato da NamedSmoObject.
Metodo protetto ScriptCreate Modifica l'oggetto SqlSmoObject in base ai parametri. Ereditato da SqlSmoObject.
Metodo protetto ScriptDdl Genera un oggetto InvalidSmoOperationException. Ereditato da SqlSmoObject.
Metodo protetto ScriptDrop Genera un oggetto InvalidSmoOperationException. Ereditato da SqlSmoObject.
Metodo protetto ScriptImpl() () () () Ottiene una raccolta di script dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto ScriptImpl(ScriptingOptions) Ottiene una raccolta di script dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto ScriptImplWorker Ottiene una raccolta di script dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto ScriptOwner Alters the script owner authorization. Ereditato da NamedSmoObject.
Metodo protetto ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. Ereditato da NamedSmoObject.
Metodo protetto SetParentImpl Imposta l'elemento padre dell'oggetto SqlSmoObject sul parametro newParent. Ereditato da SqlSmoObject.
Metodo protetto SetSchemaOwned Sets the schema owned value. Ereditato da NamedSmoObject.
Metodo pubblico Start() () () () Runs the referenced job.
Metodo pubblico Start(String) Runs the referenced job starting at the specified job step.
Metodo pubblico Stop Stops executing the referenced job.
Metodo pubblico ToString Restituisce un oggetto String che rappresenta l'oggetto a cui si fa riferimento. Ereditato da SqlSmoObject.
Metodo protetto TouchImpl Non implementato. Ereditato da SqlSmoObject.
Metodo protetto UnbindDefaultImpl Annulla l'associazione delle colonne predefinite dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto UnbindRuleImpl Annulla l'associazione delle regole dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo pubblico Validate Validates the state of an object. Ereditato da SmoObjectBase.

In alto

Eventi

  Nome Descrizione
Evento pubblico PropertyChanged Rappresenta l'evento che si verifica quando viene modificata una proprietà. Ereditato da SqlSmoObject.
Evento pubblico PropertyMetadataChanged Rappresenta l'evento che si verifica quando vengono modificati i metadati di una proprietà. Ereditato da SqlSmoObject.

In alto

Campi

  Nome Descrizione
Campo protetto m_ExtendedProperties Rappresenta una proprietà definita per estendere le proprietà fornite da un oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Campo protetto singletonParent Rappresenta il padre singleton. Ereditato da SqlSmoObject.

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .Discover Individua eventuali dipendenze. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .GetDomainRoot Restituisce la radice del dominio. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .GetParent Ottiene l'elemento padre di questo oggetto. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .GetPropertyType Ottiene il tipo della proprietà specificata. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .GetPropertyValue Ottiene il valore della proprietà specificata. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .GetUrn Ottiene l'URN (Unified Resource Name) dell'oggetto. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .Resolve Ottiene l'istanza che contiene le informazioni sull'oggetto dall'URN (Unified Resource Name) dell'oggetto. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .SetObjectState Imposta lo stato dell'oggetto sul valore SfcObjectState specificato. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .SetPropertyValue Imposta il valore della proprietà. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato ISfcPropertyProvider. . :: . .GetPropertySet Ottiene il riferimento di interfaccia al set di proprietà di questo oggetto. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SqlSmoObject.

In alto

Osservazioni

To get or set Job object properties, users must be a member of the SQLAgentUserRole database role on the MSDB database, or be the owner of the job, or be a member of the sysadmin fixed server role.

To create a job, users must be a member of the SQLAgentUserRole, SQLAgentReaderRole, and SQLAgentOperatorRole database roles on the MSDB database, or be a member of the sysadmin fixed server role.

To drop a job, users must be a member of the SQLAgentUserRole database role on the MSDB database, or be the owner of the job, or be a member of the sysadmin fixed server role.

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.