Adds the specified login to the publication access list (PAL).
Assembly: Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)
Use EnumPublicationAccesses to determine if the login is already in the PAL.
The method can only be called by members of the sysadmin fixed server role at the Publisher or by members of the db_owner fixed database role on the publication database.
Calling is equivalent to executing sp_grant_publication_access (Transact-SQL).