Export (0) Print
Expand All

UrnCollection Class

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

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

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.

  NameDescription
Public methodUrnCollectionInitializes a new instance of the UrnCollection class.
Top

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

  NameDescription
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 whether 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.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorGets a non-generic enumerator.
Explicit interface implemetationPrivate propertyICollection<Urn>.IsReadOnlyGets a value indicating whether the ICollection is read-only.
Top

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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft