共用方式為


RegisteredServerCollection.Count 屬性

Gets the number of RegisteredServer objects in the collection.

命名空間:  Microsoft.SqlServer.Management.Smo.RegisteredServers
組件:  Microsoft.SqlServer.SmoExtended (在 Microsoft.SqlServer.SmoExtended.dll 中)

語法

'宣告
Public ReadOnly Property Count As Integer 
    Get
'用途
Dim instance As RegisteredServerCollection 
Dim value As Integer 

value = instance.Count
public int Count { get; }
public:
virtual property int Count {
    int get () sealed;
}
abstract Count : int 
override Count : int
final function get Count () : int

屬性值

型別:System.Int32
An Int32 value that specifies the number of RegisteredServer objects in the collection.

實作

ICollection.Count

範例

使用集合

請參閱

參考

RegisteredServerCollection 類別

Microsoft.SqlServer.Management.Smo.RegisteredServers 命名空間

其他資源

使用集合