The Remove method drops the referenced SQL Server Agent operator, optionally reassigning notifications to a named operator.
object.Remove( [ NewName ] )
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list. |
NewName | Optional. A string identifying an existing operator by name. |
The Remove method removes the SQL-DMO object referencing the dropped operator from its containing collection.
HRESULT Remove(SQLDMO_LPCSTR NewName = NULL);