ServerGroupCollection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Instead use namespace Microsoft.SqlServer.Management.RegisteredServers
ServerGroupCollection 类表示 ServerGroup 对象的集合,这些对象表示服务器组中的所有服务器组。
public ref class ServerGroupCollection sealed : Microsoft::SqlServer::Management::Smo::RegisteredServers::RegSvrCollectionBase, System::Collections::ICollection
[System.Obsolete("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")]
public sealed class ServerGroupCollection : Microsoft.SqlServer.Management.Smo.RegisteredServers.RegSvrCollectionBase, System.Collections.ICollection
[<System.Obsolete("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")>]
type ServerGroupCollection = class
inherit RegSvrCollectionBase
interface ICollection
interface IEnumerable
Public NotInheritable Class ServerGroupCollection
Inherits RegSvrCollectionBase
Implements ICollection
- 继承
- 属性
- 实现
示例
注解
ServerGroupCollection对象可用于获取对一组服务器组的访问权限。 您可以使用 Item[] 属性返回特定 ServerGroup 对象。
字段
initialized |
已过时.
获取一个 Boolean 值,该值指示集合是否已初始化。 如果为 True,则集合已初始化。 如果为 False,则集合未初始化。 (继承自 RegSvrCollectionBase) |
innerColl |
已过时.
包含已注册服务器的基础集合的排序列表。 (继承自 RegSvrCollectionBase) |
属性
Count |
已过时.
获取所引用集合中的对象数。 |
IsSynchronized |
已过时.
获取一个 Boolean 值,该值指示是否同步对集合的访问,并因此确保线程安全。 (继承自 RegSvrCollectionBase) |
Item[Int32] |
已过时.
按索引号获取集合中的 ServerGroup 对象。 |
Item[String] |
已过时.
按名称获取集合中的 ServerGroup 对象。 |
Parent |
已过时.
获取是 ServerGroup 对象的父对象的 ServerGroupCollection 对象。 |
SyncRoot |
已过时.
获取可用于同步对集合的访问的对象。 (继承自 RegSvrCollectionBase) |
方法
Add(ServerGroup) |
已过时.
将 ServerGroup 对象添加到 ServerGroupCollection 集合。 |
Contains(String) |
已过时.
确定集合中是否存在指定的字符串值。 |
CopyTo(Array, Int32) |
已过时.
从指定的索引值开始,将集合对象复制到一维数组。 |
GetEnumerator() |
已过时.
返回一个 IEnumerator 接口,该接口允许循环访问集合中的 对象。 |
Remove(String) |
已过时.
从 ServerGroup 对象中删除 ServerGroupCollection 对象。 |