次の方法で共有


Attributes プロパティ

サブスクリプションによってサポートされるトランザクション パブリケーションの属性を取得します。値の設定も可能です。

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

構文

'宣言
Public Property Attributes As PublicationAttributes
    Get
    Set
'使用
Dim instance As TransPullSubscription
Dim value As PublicationAttributes

value = instance.Attributes

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

説明

PublicationAttributes 列挙は、列挙値のビット演算の組み合わせを許可する FlagsAttribute オプションをサポートします。

PublicationAttributesImmediateSync 値と IndependentAgent 値のみが Attributes プロパティによってサポートされます。その他の値はすべて無視されます。

既存のサブスクリプションの Attributes プロパティは設定できません。

Attributes プロパティを取得できるのは、サブスクライバ側の固定サーバー ロール sysadmin のメンバ、またはサブスクリプション データベースの固定データベース ロール db_owner のメンバだけです。

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

Attributes プロパティを取得すると、sp_helppullsubscription を実行したのと同じことになります。

Attributes プロパティを設定すると、sp_addpullsubscription を実行したのと同じことになります。

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

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