次の方法で共有


MergeSubscription.SubscriberType プロパティ

サブスクリプションがクライアント サブスクリプションとサーバー サブスクリプションのどちらであるかを取得します。値の設定も可能です。

名前空間:  Microsoft.SqlServer.Replication
アセンブリ:  Microsoft.SqlServer.Rmo (Microsoft.SqlServer.Rmo.dll)

構文

'宣言
Public Property SubscriberType As MergeSubscriberType 
    Get 
    Set
'使用
Dim instance As MergeSubscription 
Dim value As MergeSubscriberType 

value = instance.SubscriberType

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

プロパティ値

型: Microsoft.SqlServer.Replication.MergeSubscriberType
MergeSubscriberType 値です。

説明

SubscriberType プロパティを取得できるのは、パブリッシャー側の固定サーバー ロール sysadmin のメンバー、パブリケーション データベースの固定データベース ロール db_owner のメンバー、またはサブスクリプションが属するパブリケーションのパブリケーション アクセス リストのメンバーだけです。

SubscriberType プロパティを設定できるのは、パブリッシャー側の固定サーバー ロール sysadmin のメンバー、またはパブリケーション データベースの固定データベース ロール db_owner のメンバーだけです。

SubscriberType を取得すると、sp_helpmergesubscription を実行したのと同じことになります。

SubscriberType を設定すると、sp_addmergesubscription または sp_changemergesubscription を実行したのと同じことになります。

関連項目

参照

MergeSubscription クラス

Microsoft.SqlServer.Replication 名前空間