Condividi tramite


Classe UrnCollection

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

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

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

Nel tipo UrnCollection sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico UrnCollection Initializes a new instance of the UrnCollection class.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica Count Gets the number of Urns in a Urn Collection.
Proprietà pubblica Item Gets a Urn object in the collection by index number.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Add Adds a URN to a URN collection.
Metodo pubblico AddRange Adds the elements of the specified collection to the end of the list.
Metodo pubblico Clear Removes all elements from the collection.
Metodo pubblico Contains Specifies if a URN collection contains a URN.
Metodo pubblico CopyTo Copies members of the collection to an array, starting at the specified index of the array.
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetEnumerator Returns a generic IEnumerator interface.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo pubblico IndexOf Gets the index of a specified URN from a collection.
Metodo pubblico Insert Inserts a URN at a specified index of a URN collection.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico Remove Removes a specified URN from a collection.
Metodo pubblico RemoveAt Removes a URN from a collection based on the index of the URN.
Metodo pubblico ToString Ereditato da Object.

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato IEnumerable. . :: . .GetEnumerator Gets a non-generic enumerator.
Implementazione esplicita dell'interfacciaProprietà privata ICollection< (Of < <' (Urn> ) > > ). . :: . .IsReadOnly Gets a Boolean indicating whether the collection is read-only.

In alto

Osservazioni

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

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.