SfcCollection(T, K, ParentT) 类
Represents the base for all domain collections. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
继承层次结构
System. . :: . .Object
Microsoft.SqlServer.Management.Sdk.Sfc..::..SfcCollection<(Of <(<'T, K, ParentT>)>)>
Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >
Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >
Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcListCollection< (Of < ( <'T, K, ParentT> ) > ) >
命名空间: Microsoft.SqlServer.Management.Sdk.Sfc
程序集: Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
语法
声明
Public MustInherit Class SfcCollection(Of T As SfcInstance, K As SfcKey, ParentT As SfcInstance) _
Implements ICollection(Of T), IEnumerable(Of T), _
ICollection, ISfcCollection, IEnumerable, IListSource
用法
Dim instance As SfcCollection(Of T, K, ParentT)
public abstract class SfcCollection<T, K, ParentT> : ICollection<T>,
IEnumerable<T>, ICollection, ISfcCollection, IEnumerable, IListSource
where T : SfcInstance
where K : SfcKey
where ParentT : SfcInstance
generic<typename T, typename K, typename ParentT>
where T : SfcInstance
where K : SfcKey
where ParentT : SfcInstance
public ref class SfcCollection abstract : ICollection<T>,
IEnumerable<T>, ICollection, ISfcCollection, IEnumerable, IListSource
[<AbstractClassAttribute>]
type SfcCollection<'T, 'K, 'ParentT when 'T : SfcInstance when 'K : SfcKey when 'ParentT : SfcInstance> =
class
interface ICollection<'T>
interface IEnumerable<'T>
interface ICollection
interface ISfcCollection
interface IEnumerable
interface IListSource
end
JScript 不支持一般类型和方法。
类型参数
- T
The type of the items in the collection, constrained to SfcInstance.
- K
The type of the key, constrained to SfcKey.
- ParentT
The type of the parent object, constrained to SfcInstance.
SfcCollection<(Of <(<'T, K, ParentT>)>)> 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
SfcCollection< (Of < ( <'T, K, ParentT> ) > ) > | Initializes a new instance of the SfcCollection<(Of <(<'T, K, ParentT>)>)> class. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 |
页首
属性
名称 | 说明 | |
---|---|---|
Count | Gets the number of items contained in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
Initialized | Gets a value indicating whether the collection has been initialized. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
IsReadOnly | Gets a value indicating whether the collection is read-only. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
IsSynchronized | Gets or sets a value indicating whether access to the collection is synchronized (thread safe). 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
Item | Gets the item specified by the key. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
Parent | Gets or sets the type of the parent object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
SyncRoot | Gets or sets an object that can be used to synchronize access to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 |
页首
方法
名称 | 说明 | |
---|---|---|
Add | Adds the specified object to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
AddShadow | Adds the specified object to the shadow collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
Clear | Removes all items from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
Contains(K) | Determines whether the collection contains the specified key. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
Contains(T) | Determines whether the collection contains the specified object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
CopyTo(Array, Int32) | Copies the elements from the collection to the specified array, starting at the specified array index. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
CopyTo(array<T> [] () [] [], Int32) | Copies the elements from the collection to the specified array, starting at the specified array index. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
CreateAndInitializeChildObject | Creates a child object and adds it to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
EnsureCollectionInitialized | Initialize the collection from the server. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
Equals | (从 Object 继承。) | |
Finalize | (从 Object 继承。) | |
FinishMerge | Swaps the new collection for the old collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
GetCollectionElementNameImpl | Gets the Uniform Resource Name (URN) suffix for elements in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
GetElementFactoryImpl | Returns the factory that is used to instantiate objects for the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
GetEnumerator | Returns an enumerator that can iterate the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
GetExistingObjectByKey | Uses the specified key to retrieve an existing object from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
GetHashCode | (从 Object 继承。) | |
GetObjectByKey | Uses the specified key to retrieve an existing object from the collection. If a matching object is not found, the object is created, and added to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
GetType | (从 Object 继承。) | |
ImplAddExisting | Adds the specified object to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ImplRemoveExisting | Removes the specified object from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
InitInnerCollection | Creates an empty internal collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
MemberwiseClone | (从 Object 继承。) | |
PrepareMerge | Prepares to merge fresh query results into the existing collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
Refresh() () () () | Refreshes the collection by creating new and merging existing objects and properties in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
Refresh(Boolean) | Refreshes the collection by creating new and merging existing objects and properties in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
Remove | Removes the specified object from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
RemoveInternal | Marks the specified object for removal. The state of the object is set to ToBeDropped. The object will be removed when the parent is altered or dropped. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
Rename | Renames the specified object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ToString | (从 Object 继承。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
IListSource. . :: . .ContainsListCollection | Gets a value indicating whether the collection is a collection of IList objects. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
IEnumerable. . :: . .GetEnumerator | Gets an enumerator that can iterate the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
IListSource. . :: . .GetList | Returns an IList object that can be bound to a data source from an object that does not implement the IList interface. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .Add | Adds the specified object to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .AddShadow | Adds the specified object to the shadow collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .Count | Gets the number of items contained in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .EnsureInitialized | Initializes the collection from the server. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .FinishMerge | Swaps the new collection for the old collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .GetCollectionElementNameImpl | Gets the URN suffix for elements in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .GetElementFactory | Gets the factory that is used to instantiate objects for the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .GetExisting | Uses the specified key to retrieve an existing item from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .GetObjectByKey | Uses the specified key to retrieve an object from the collection. If a matching object is not found, the object is created, and added to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .Initialized | Gets or sets a value indicating whether the collection has been initialized. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .Parent | Gets the parent object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .PrepareMerge | Prepares to merge fresh query results into the existing collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .Remove | Removes the specified object from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .RemoveElement | Removes the specified element from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 | |
ISfcCollection. . :: . .Rename | Renames the specified object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。