UrnCollection Class
The UrnCollection class represents a collection of Urn objects that represent Uniform Resource Name (URN) addresses.
Inheritance Hierarchy
System.Object
Microsoft.SqlServer.Management.Smo.UrnCollection
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Class UrnCollection _
Implements IList(Of Urn), ICollection(Of Urn), _
IEnumerable(Of Urn), IEnumerable
'Usage
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
The UrnCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UrnCollection | Initializes a new instance of the UrnCollection class. |
Top
Properties
Name | Description | |
---|---|---|
Count | Gets the number of Urns in a Urn Collection. | |
Item | Gets a Urn object in the collection by index number. |
Top
Methods
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 if 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.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable.GetEnumerator | Gets a non-generic enumerator. | |
ICollection<Urn>.IsReadOnly | Gets a Boolean indicating whether the collection is read-only. |
Top
Remarks
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.