共用方式為


EnumPublicationArticles 方法

Returns replication information for published objects in the replication database.

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

語法

'宣告
Public Function EnumPublicationArticles ( _
    objName As String _
) As ArrayList
'用途
Dim instance As ReplicationDatabase
Dim objName As String
Dim returnValue As ArrayList

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

參數

  • objName
    型別:System. . :: . .String
    A String value specifying the database object that is published, such as the table name or stored procedure.

例外

例外狀況 條件
ApplicationException

When the database does not exist.

ArgumentException

When objName is longer than 128 Unicode characters, is null, or contains null characters.

備註

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

This namespace, class, or member is supported only in version 2.0 of the .NET Framework.