共用方式為


DistributionSubscription.Status 屬性

Gets or sets the status of the subscription.

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)

語法

'宣告
Public Property Status As SubscriptionState 
    Get 
    Set
'用途
Dim instance As DistributionSubscription 
Dim value As SubscriptionState 

value = instance.Status

instance.Status = value
public SubscriptionState Status { get; set; }
public:
property SubscriptionState Status {
    SubscriptionState get ();
    void set (SubscriptionState value);
}
member Status : SubscriptionState with get, set
function get Status () : SubscriptionState 
function set Status (value : SubscriptionState)

屬性值

型別:Microsoft.SqlServer.Replication.SubscriptionState
The status of a subscription.

備註

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.

請參閱

參考

DistributionSubscription 類別

Microsoft.SqlServer.Replication 命名空間