We recommend using Visual Studio 2017

UrnCollection Class

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


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

public class UrnCollection : IList<Urn>, 
	ICollection<Urn>, IEnumerable<Urn>, IEnumerable

The UrnCollection type exposes the following members.

Public methodUrnCollectionInitializes a new instance of the UrnCollection class.

Public propertyCountGets the number of Urns in a Urn Collection.
Public propertyItemGets a Urn object in the collection by index number.

Public methodAddAdds a URN to a URN collection.
Public methodAddRangeAdds the elements of the specified collection to the end of the list.
Public methodClearRemoves all elements from the collection.
Public methodContainsSpecifies if a URN collection contains a URN.
Public methodCopyToCopies members of the collection to an array, starting at the specified index of the array.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumeratorReturns a generic IEnumerator interface.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIndexOfGets the index of a specified URN from a collection.
Public methodInsertInserts a URN at a specified index of a URN collection.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemoveRemoves a specified URN from a collection.
Public methodRemoveAtRemoves a URN from a collection based on the index of the URN.
Public methodToString (Inherited from Object.)

Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorGets a non-generic enumerator.
Explicit interface implemetationPrivate propertyICollection<Urn>.IsReadOnlyGets a Boolean indicating whether the collection 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.

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

Community Additions