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 型別公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
UrnCollection | Initializes a new instance of the UrnCollection class. |
上層
屬性
名稱 | 說明 | |
---|---|---|
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 | 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 | (繼承自 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 | 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
此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。並非所有的執行個體成員都是安全執行緒。
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間