PublisherMonitor.StatusAndWarning Property

Definition

Gets status information and warnings for the monitored threshold metrics on the Publisher.

public:
 property Microsoft::SqlServer::Replication::ReplicationStatusAndWarning ^ StatusAndWarning { Microsoft::SqlServer::Replication::ReplicationStatusAndWarning ^ get(); };
public Microsoft.SqlServer.Replication.ReplicationStatusAndWarning StatusAndWarning { get; }
member this.StatusAndWarning : Microsoft.SqlServer.Replication.ReplicationStatusAndWarning
Public ReadOnly Property StatusAndWarning As ReplicationStatusAndWarning

Property Value

A ReplicationStatusAndWarning object.

Remarks

If the ExcludeAnonymousSubscriptions property is set to true, anonymous subscriptions are excluded from the results.

The StatusAndWarning property can only be retrieved by members of the sysadmin fixed server role at the Distributor or by members of the db_owner or replmonitor fixed database roles on the distribution database.

Retrieving the StatusAndWarning property is equivalent to executing sp_replmonitorhelppublisher (Transact-SQL).

Applies to