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 一个表示集合已被初始化的值。 如果为真,集合被初始化。 如果是 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) |
已过时.
从ServerGroupServerGroupCollection对象中删除对象。 |