共用方式為


DistributionPublication.DistributionSubscriptions 屬性

Represents information about subscriptions to the publication stored at the Distributor.

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

語法

'宣告
Public ReadOnly Property DistributionSubscriptions As DistributionSubscriptionCollection 
    Get
'用途
Dim instance As DistributionPublication 
Dim value As DistributionSubscriptionCollection 

value = instance.DistributionSubscriptions
public DistributionSubscriptionCollection DistributionSubscriptions { get; }
public:
property DistributionSubscriptionCollection^ DistributionSubscriptions {
    DistributionSubscriptionCollection^ get ();
}
member DistributionSubscriptions : DistributionSubscriptionCollection
function get DistributionSubscriptions () : DistributionSubscriptionCollection

屬性值

型別:Microsoft.SqlServer.Replication.DistributionSubscriptionCollection
A DistributionSubscriptionCollection of DistributionSubscription objects.

備註

A DistributionSubscription object in the returned DistributionSubscriptionCollection can be accessed from the Item property. This can be done using an [Int32] index value or using a [String, String] index value that is composed of the SubscriberName and SubscriptionDBName properties that defines the subscription.

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

請參閱

參考

DistributionPublication 類別

Microsoft.SqlServer.Replication 命名空間