UrnCollection-Klasse

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

Vererbungshierarchie

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Class UrnCollection _
    Implements IList(Of Urn), ICollection(Of Urn),  _
    IEnumerable(Of Urn), IEnumerable
'Usage
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

Der UrnCollection-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode UrnCollection Initializes a new instance of the UrnCollection class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Count Gets the number of Urns in a Urn Collection.
Öffentliche Eigenschaft Item Gets a Urn object in the collection by index number.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Add Adds a URN to a URN collection.
Öffentliche Methode AddRange Adds the elements of the specified collection to the end of the list.
Öffentliche Methode Clear Removes all elements from the collection.
Öffentliche Methode Contains Specifies whether a URN collection contains a URN.
Öffentliche Methode CopyTo Copies members of the collection to an array, starting at the specified index of the array.
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetEnumerator Returns a generic IEnumerator interface.
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode IndexOf Gets the index of a specified URN from a collection.
Öffentliche Methode Insert Inserts a URN at a specified index of a URN collection.
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode Remove Removes a specified URN from a collection.
Öffentliche Methode RemoveAt Removes a URN from a collection based on the index of the URN.
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode IEnumerable.GetEnumerator Gets a non-generic enumerator.
Explizite SchnittstellenimplementierungPrivate Eigenschaft ICollection<Urn>.IsReadOnly Gets a value indicating whether the ICollection is read-only.

Zum Anfang

Hinweise

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

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Smo-Namespace

Andere Ressourcen

Verwenden von Auflistungen