Login or Sign Up to become a member!
LessThanDot Site Logo


Community Wiki

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.


Google Ads

RMO Get Array of publication Thresholds

From Wiki

Jump to: navigation, search

Use this base method to return an ArrayList of all thresholds set for a publication. Method requires the passing of distribution database, publication database, publisher instance and publication name

  1. public ArrayList EnumThreshold(string distDB, string pubDB, string pubInstance, string pubName)
  2.         {
  3.             ServerConnection conn = new ServerConnection(pubInstance);
  4.             ArrayList Thresholds = new ArrayList();
  5.             try
  6.             {
  7.                 conn.Connect();
  9.                 PublicationMonitor publication = new PublicationMonitor(pubName, distDB, pubInstance,pubDB,conn);
  10.                 publication.LoadProperties();
  11.                 Thresholds = publication.EnumMonitorThresholds();
  12.                 return Thresholds;
  13.             }
  14.             catch (Exception ex)
  15.             {
  16.                 throw new ApplicationException(
  17.                     "The publication property could not be changed.", ex);
  18.             }
  19.             finally
  20.             {
  21.                 conn.Disconnect();
  22.             }
  23.         }

--onpnt 01:16, 30 December 2010 (GMT)

811 Rating: 2.2/5 (40 votes cast)