Ce sujet n'a pas encore été évalué - Évaluez ce sujet

Classe AlertCollection

The AlertCollection class represents a collection of Alert objects that represent all the alerts defined on the parent object.

Espace de noms :  Microsoft.SqlServer.Management.Smo.Agent
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
public sealed class AlertCollection : SimpleObjectCollectionBase

Le type AlertCollection expose les membres suivants.

  NomDescription
Propriété publiqueCountGets the number of objects in the referenced collection. (hérité de SmoCollectionBase.)
Propriété publiqueIsSynchronizedGets the Boolean property value that specifies whether access to the collection is synchronized and therefore thread-safe. (hérité de SmoCollectionBase.)
Propriété publiqueItem[Int32]Gets an Alert object in the collection by index number.
Propriété publiqueItem[String]Gets an Alert object in the collection by name.
Propriété publiqueParentGets the JobServer object that is the parent of the AlertCollection object.
Propriété publiqueSyncRootGets an object that can be used to synchronize access to the collection. (hérité de SmoCollectionBase.)
Haut de la page
  NomDescription
Méthode publiqueAddAdds an Alert object to the collection.
Méthode protégéeAddExistingAdds an object to the collection. (hérité de AbstractCollectionBase.)
Méthode publiqueContainsVerifies whether the specified object exists in the collection. (hérité de SimpleObjectCollectionBase.)
Méthode publiqueCopyToCopies the collection objects to a one-dimensional array beginning at the index value specified.
Méthode publiqueEquals (hérité de Object.)
Méthode publiqueGetEnumeratorReturns an IEnumerator interface that allows you to iterate through the objects in the collection. (hérité de SmoCollectionBase.)
Méthode publiqueGetHashCode (hérité de Object.)
Méthode publiqueGetType (hérité de Object.)
Méthode publiqueItemByIdExtracts a member from the AlertCollection collection using a system-defined, unique identifier.
Méthode publiqueRefresh()Refreshes the referenced collection. (hérité de SmoCollectionBase.)
Méthode publiqueRefresh(Boolean)Refreshes the referenced collection with the option to refresh child objects of the referenced collection. (hérité de SmoCollectionBase.)
Méthode publiqueScript()Generates a Transact-SQL script that can be used to re-create the collection of alerts.
Méthode publiqueScript(ScriptingOptions)Generates a Transact-SQL script that can be used to re-create the collection of alerts as specified by the script options.
Méthode publiqueToString (hérité de Object.)
Haut de la page
  NomDescription
Champ protégéinitializedThis value supports the SMO infrastructure and is not intended to be used directly from your code. (hérité de AbstractCollectionBase.)
Haut de la page
  NomDescription
Implémentation d'interface expliciteMéthode privéeICollection.CopyToCopies the elements from an instance to an array beginning at the index indicated. (hérité de SmoCollectionBase.)
Haut de la page

An AlertCollection object can be used to gain access to a set of alerts. You can use the Item property to return a specific Alert object.

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 étant thread-safe.

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.
Cela vous a-t-il été utile ?
(1500 caractères restants)

Ajouts de la communauté

AJOUTER
© 2013 Microsoft. Tous droits réservés.