次の方法で共有


PublisherName プロパティ

パブリッシャの名前を取得します。値の設定も可能です。

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

構文

'宣言
Public Property PublisherName As String
    Get
    Set
'使用
Dim instance As PublicationMonitor
Dim value As String

value = instance.PublisherName

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

プロパティ値

型: System. . :: . .String
String 値です。

説明

PublisherName は、プロパティが PublicationMonitor のインスタンスに対して読み込まれると変更できなくなる必須プロパティです。

PublisherName プロパティを取得できるのは、ディストリビュータ側の固定サーバー ロール sysadmin のメンバ、ディストリビューション データベースの固定データベース ロール db_owner または replmonitor のメンバ、あるいはパブリケーションのパブリケーション アクセス リスト (PAL) のユーザーだけです。

PublisherName プロパティは、すべてのユーザーが設定できます。

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