次の方法で共有


Description プロパティ

パブリケーションの説明テキストを取得します。値の設定も可能です。

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

構文

'宣言
Public Property Description As String
    Get
    Set
'使用
Dim instance As Publication
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 プロパティを取得できるのは、パブリッシャ側の固定サーバー ロール sysadmin のメンバ、パブリケーション データベースの固定データベース ロール db_owner のメンバ、またはパブリケーション アクセス リスト (PAL) のユーザーだけです。

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

Description プロパティを取得すると、sp_helppublicationsp_helppublication (Transact-SQL) または sp_helpmergepublicationsp_helpmergepublication (Transact-SQL) を実行したのと同じことになります。

Description プロパティを設定すると、sp_addpublication (Transact-SQL)sp_changepublication (Transact-SQL)、または sp_addmergepublication (Transact-SQL)sp_changemergepublication (Transact-SQL) を実行したのと同じことになります。

Description プロパティは、SQL Server 7.0、SQL Server 2000、および SQL Server 2005 で使用できます。

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