Partager via


Méthode ReplicationDatabase.EnumPublicationArticles

Returns replication information for published objects in the replication database.

Espace de noms :  Microsoft.SqlServer.Replication
Assembly :  Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)

Syntaxe

'Déclaration
Public Function EnumPublicationArticles ( _
    objName As String _
) As ArrayList
'Utilisation
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

Paramètres

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

Valeur de retour

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

Exceptions

Exception Condition
ApplicationException

When the database does not exist.

ArgumentException

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

Notes

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

Voir aussi

Référence

ReplicationDatabase Classe

Espace de noms Microsoft.SqlServer.Replication