次の方法で共有


DataSourceDefinition.Enabled プロパティ

データ ソースが有効かどうかを示す値を取得します。

名前空間:  ReportService2010
アセンブリ:  ReportService2010 (ReportService2010.dll)

構文

'宣言
Public Property Enabled As Boolean 
    Get 
    Set
'使用
Dim instance As DataSourceDefinition 
Dim value As Boolean 

value = instance.Enabled

instance.Enabled = value
public bool Enabled { get; set; }
public:
property bool Enabled {
    bool get ();
    void set (bool value);
}
member Enabled : bool with get, set
function get Enabled () : boolean 
function set Enabled (value : boolean)

プロパティ値

型: System.Boolean
データ ソースが有効な場合は true、有効でない場合は false です。既定値は true です。

説明

false に設定すると、レポート サーバーは、データ ソースに関連付けられたアイテムを実行しません。

Enabled プロパティの値は、このプロパティを Web サービス呼び出しで省略する必要があるかどうかを示す、EnabledSpecified プロパティに対応しています。

プロパティの省略の詳細については、「オプションの Web サービス オブジェクトの値の省略」を参照してください。

関連項目

参照

DataSourceDefinition クラス

ReportService2010 名前空間