GetPublicationName method

Returns the name of the publication identified by the specified publication ID.

Syntax
Visual Basic
Public Function GetPublicationName( _
   ByVal pubID As Integer _
) As String
C#
public string  GetPublicationName(
   int pubID
);
Parameters
  • pubID   The ID of the publication. The value must be in the range [1,PublicationCount].

Return value

The publication name as a string.

Remarks

Note: Publication IDs and counts may change during a schema upgrade. To correctly identify a publication, access it by name or refresh the cached IDs and counts after a schema upgrade.

See also