UrnCollection 类
The UrnCollection class represents a collection of Urn objects that represent Uniform Resource Name (URN) addresses.
继承层次结构
System. . :: . .Object
Microsoft.SqlServer.Management.Smo..::..UrnCollection
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 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 =
class
interface IList<Urn>
interface ICollection<Urn>
interface IEnumerable<Urn>
interface IEnumerable
end
public class UrnCollection implements IList<Urn>, ICollection<Urn>, IEnumerable<Urn>, IEnumerable
UrnCollection 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
Count | Gets the number of Urns in a Urn Collection. | |
Item | Gets a Urn object in the collection by index number. |
页首
方法
名称 | 说明 | |
---|---|---|
Add | Adds a URN to a URN collection. | |
AddRange | ||
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 | (从 Object 继承。) | |
Finalize | (从 Object 继承。) | |
GetEnumerator | Returns a generic IEnumerator interface. | |
GetHashCode | (从 Object 继承。) | |
GetType | (从 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 | (从 Object 继承。) | |
Remove | Removes a specified URN from a collection. | |
RemoveAt | Removes a URN from a collection based on the index of the URN. | |
ToString | (从 Object 继承。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
IEnumerable. . :: . .GetEnumerator | ||
ICollection< (Of < <' (Urn> ) > > ). . :: . .IsReadOnly |
页首
注释
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
此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。 不保证所有实例成员都对于线程安全的。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。