共用方式為


ReplicationServer.EnumReplicationDatabases 方法

Returns the databases enabled for replication.

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)

語法

'宣告
Public Function EnumReplicationDatabases As ArrayList
'用途
Dim instance As ReplicationServer 
Dim returnValue As ArrayList 

returnValue = instance.EnumReplicationDatabases()
public ArrayList EnumReplicationDatabases()
public:
ArrayList^ EnumReplicationDatabases()
member EnumReplicationDatabases : unit -> ArrayList
public function EnumReplicationDatabases() : ArrayList

傳回值

型別:System.Collections.ArrayList
An ArrayList of ReplicationDatabase objects.

備註

The EnumReplicationDatabases method can be called by members of the db_owner fixed database role and users in the publication access list (PAL) of any published database.

The EnumReplicationDatabases method is equivalent to the sp_helpreplicationdboption (Transact-SQL) stored procedure.

請參閱

參考

ReplicationServer 類別

Microsoft.SqlServer.Replication 命名空間