共用方式為


ReplicationServer.EnumHeterogeneousTables 方法

Returns the available tables on a non-SQL Server Publisher.

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

語法

'宣告
Public Function EnumHeterogeneousTables ( _
    publisherName As String _
) As ArrayList
'用途
Dim instance As ReplicationServer 
Dim publisherName As String 
Dim returnValue As ArrayList 

returnValue = instance.EnumHeterogeneousTables(publisherName)
public ArrayList EnumHeterogeneousTables(
    string publisherName
)
public:
ArrayList^ EnumHeterogeneousTables(
    String^ publisherName
)
member EnumHeterogeneousTables : 
        publisherName:string -> ArrayList
public function EnumHeterogeneousTables(
    publisherName : String
) : ArrayList

參數

  • publisherName
    型別:System.String
    A string value that specifies the Publisher.

傳回值

型別:System.Collections.ArrayList
A ArrayList containing a collection of HeterogeneousTable objects.

例外狀況

例外狀況 條件
ApplicationException

When the currently connected instance of SQL Server is not a Distributor or is not running on SQL Server 2005 or later.

ArgumentException

If one of the parameters is null, contains null characters, or exceeds 128 bytes.

備註

The EnumHeterogeneousTables method is used when adding articles to a publication on a non-SQL Server Publisher.

The EnumHeterogeneousTables method can only be called when the currently connected instance of SQL Server is a Distributor.

The EnumHeterogeneousTables method can only be called by members of the sysadmin fixed server role.

請參閱

參考

ReplicationServer 類別

Microsoft.SqlServer.Replication 命名空間