Classe Operator
The Operator class represents a SQL Server Agent operator.
Espace de noms : Microsoft.SqlServer.Management.Smo.Agent
Assembly : Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public NotInheritable Class Operator _
Inherits AgentObjectBase _
Implements ICreatable, IDroppable, IAlterable, IRenamable, _
IScriptable
'Utilisation
Dim instance As [Operator]
public sealed class Operator : AgentObjectBase,
ICreatable, IDroppable, IAlterable, IRenamable, IScriptable
public ref class Operator sealed : public AgentObjectBase,
ICreatable, IDroppable, IAlterable, IRenamable, IScriptable
[<SealedAttribute>]
type Operator =
class
inherit AgentObjectBase
interface ICreatable
interface IDroppable
interface IAlterable
interface IRenamable
interface IScriptable
end
public final class Operator extends AgentObjectBase implements ICreatable, IDroppable, IAlterable, IRenamable, IScriptable
Notes
To get Operator object properties, users must be a member of the SQLAgentUserRole database role on the MSDB database, or be a member of the sysadmin fixed server role.
To set Operator object properties, users must be a member of the sysadmin fixed server role.
To create or delete an operator, users must be a member of the sysadmin fixed server role.
To update notification for an operator, users must be a member of the sysadmin fixed server role.
Thread Safety
Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme sûrs.
Hiérarchie d'héritage
System. . :: . .Object
Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .NamedSmoObject
Microsoft.SqlServer.Management.Smo.Agent. . :: . .AgentObjectBase
Microsoft.SqlServer.Management.Smo.Agent..::..Operator
Sécurité des threads
Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.