Condividi tramite


Metodo EnumPublicationArticles

Returns replication information for published objects in the replication database.

Spazio dei nomi:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

Sintassi

'Dichiarazione
Public Function EnumPublicationArticles ( _
    objName As String _
) As ArrayList
'Utilizzo
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

Parametri

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

Valore restituito

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

Eccezioni

Eccezione Condizione
ApplicationException

When the database does not exist.

ArgumentException

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

Osservazioni

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.