共用方式為


DistributionSubscription.Status Property

Definition

Gets or sets the status of the subscription.

public:
 property Microsoft::SqlServer::Replication::SubscriptionState Status { Microsoft::SqlServer::Replication::SubscriptionState get(); void set(Microsoft::SqlServer::Replication::SubscriptionState value); };
public Microsoft.SqlServer.Replication.SubscriptionState Status { get; set; }
member this.Status : Microsoft.SqlServer.Replication.SubscriptionState with get, set
Public Property Status As SubscriptionState

Property Value

The status of a subscription.

Remarks

This property cannot be set for an existing subscription.

The Status property can only be retrieved by members of the db_owner fixed database role on the distribution database.

The Status property can be set by any user.

Applies to