UrnCollection Class
SQL Server 2012
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)
The UrnCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Add | Adds a URN to a URN collection. |
![]() | AddRange | Adds the elements of the specified collection to the end of the list. |
![]() | Clear | Removes all elements from the collection. |
![]() | Contains | Specifies whether a URN collection contains a URN. |
![]() | CopyTo | Copies members of the collection to an array, starting at the specified index of the array. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetEnumerator | Returns a generic IEnumerator interface. |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | IndexOf | Gets the index of a specified URN from a collection. |
![]() | Insert | Inserts a URN at a specified index of a URN collection. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Remove | Removes a specified URN from a collection. |
![]() | RemoveAt | Removes a URN from a collection based on the index of the URN. |
![]() | ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable.GetEnumerator | Gets a non-generic enumerator. |
![]() ![]() | 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.


