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.
RMO Enum all snapshot agents
From Wiki
Use this base method to return a Data Table listing all snapshot agents
- public static DataTable EnumSnapshotAgents()
- {
- try
- {
- string distributor = <distributor instance name>;
- ServerConnection publisher = new ServerConnection(distributor);
- ReplicationMonitor snapMonitor = new ReplicationMonitor(publisher);
- snapMonitor.LoadProperties();
- DataSet ds = snapMonitor.EnumSnapshotAgents();
- return ds.Tables[0];
- }
- catch (Exception ex)
- {
- throw new ApplicationException(
- "The publication property could not be changed.", ex);
- }
- }
--onpnt 01:38, 30 December 2010 (GMT)



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