次の方法で共有


MergeSubscription.Description プロパティ

マージ サブスクリプションの説明テキストを取得します。値の設定も可能です。

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

構文

'宣言
Public Property Description As String 
    Get 
    Set
'使用
Dim instance As MergeSubscription 
Dim value As String 

value = instance.Description

instance.Description = value
public string Description { get; set; }
public:
property String^ Description {
    String^ get ();
    void set (String^ value);
}
member Description : string with get, set
function get Description () : String 
function set Description (value : String)

プロパティ値

型: System.String
マージ サブスクリプションの説明テキストを表す String 値です。

説明

Description プロパティは、サブスクリプションの表示名を指定するために使用されます。

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

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

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

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

関連項目

参照

MergeSubscription クラス

Microsoft.SqlServer.Replication 名前空間