次の方法で共有


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)

説明

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

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

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

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

この名前空間、クラス、またはメンバは、Microsoft .NET Framework 2.0 でのみサポートされています。