Share via


ReplicationDatabase.EnumReplicationTables Method

Returns all user-defined table objects in the database.

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

Syntax

'Declaration
Public Function EnumReplicationTables As ArrayList
'Usage
Dim instance As ReplicationDatabase 
Dim returnValue As ArrayList 

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

Return Value

Type: System.Collections.ArrayList
An ArrayList of ReplicationTable objects.

Exceptions

Exception Condition
ApplicationException

When the database does not exist.

Remarks

The EnumReplicationTables method can only be called by members of the sysadmin fixed server role and members of the db_owner fixed database role.

See Also

Reference

ReplicationDatabase Class

Microsoft.SqlServer.Replication Namespace