UrnCollection Class

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

Inheritance Hierarchy


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


Public Class UrnCollection _
    Implements IList(Of Urn), ICollection(Of Urn),  _
    IEnumerable(Of Urn), IEnumerable
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 =  
        interface IList<Urn>
        interface ICollection<Urn>
        interface IEnumerable<Urn>
        interface IEnumerable 
public class UrnCollection implements IList<Urn>, ICollection<Urn>, IEnumerable<Urn>, IEnumerable

The UrnCollection type exposes the following members.


  Name Description
Public method UrnCollection Initializes a new instance of the UrnCollection class.



  Name Description
Public property Count Gets the number of Urns in a Urn Collection.
Public property Item Gets a Urn object in the collection by index number.



  Name Description
Public method Add Adds a URN to a URN collection.
Public method AddRange Adds the elements of the specified collection to the end of the list.
Public method Clear Removes all elements from the collection.
Public method Contains Specifies whether a URN collection contains a URN.
Public method CopyTo Copies members of the collection to an array, starting at the specified index of the array.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Returns a generic IEnumerator interface.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IndexOf Gets the index of a specified URN from a collection.
Public method Insert Inserts a URN at a specified index of a URN collection.
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove Removes a specified URN from a collection.
Public method RemoveAt Removes a URN from a collection based on the index of the URN.
Public method ToString (Inherited from Object.)


Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Gets a non-generic enumerator.
Explicit interface implemetationPrivate property ICollection<Urn>.IsReadOnly Gets a value indicating whether the ICollection is read-only.



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

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Using Collections