Classe UrnCollection

The UrnCollection class represents a collection of Urn objects that represent Uniform Resource Name (URN) addresses.

Hiérarchie d'héritage

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo..::..UrnCollection

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Class UrnCollection _
    Implements IList(Of Urn), ICollection(Of Urn),  _
    IEnumerable(Of Urn), IEnumerable
'Utilisation
Dim instance As UrnCollection
public class UrnCollection : IList<Urn>, 
    ICollection<Urn>, IEnumerable<Urn>, IEnumerable
public ref class UrnCollection : IList<Urn^>, 
    ICollection<Urn^>, IEnumerable<Urn^>, IEnumerable
type UrnCollection =  
    class
        interface IList<Urn>
        interface ICollection<Urn>
        interface IEnumerable<Urn>
        interface IEnumerable
    end
public class UrnCollection implements IList<Urn>, ICollection<Urn>, IEnumerable<Urn>, IEnumerable

Le type UrnCollection expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique UrnCollection Initializes a new instance of the UrnCollection class.

Haut de la page

Propriétés

  Nom Description
Propriété publique Count Gets the number of Urns in a Urn Collection.
Propriété publique Item Gets a Urn object in the collection by index number.

Haut de la page

Méthodes

  Nom Description
Méthode publique Add Adds a URN to a URN collection.
Méthode publique AddRange Adds the elements of the specified collection to the end of the list.
Méthode publique Clear Removes all elements from the collection.
Méthode publique Contains Specifies if a URN collection contains a URN.
Méthode publique CopyTo Copies members of the collection to an array, starting at the specified index of the array.
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetEnumerator Returns a generic IEnumerator interface.
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode publique IndexOf Gets the index of a specified URN from a collection.
Méthode publique Insert Inserts a URN at a specified index of a URN collection.
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique Remove Removes a specified URN from a collection.
Méthode publique RemoveAt Removes a URN from a collection based on the index of the URN.
Méthode publique ToString (hérité de Object.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée IEnumerable. . :: . .GetEnumerator Gets a non-generic enumerator.
Implémentation d'interface explicitePropriété privée ICollection< (Of < <' (Urn> ) > > ). . :: . .IsReadOnly Gets a Boolean indicating whether the collection is read-only.

Haut de la page

Notes

A UrnCollection object can be used to gain access to a set of URN addresses. You can use the Item property to return a specific Urn 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.

Sécurité des threads

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.