次の方法で共有


Application.PerformanceQueryInterval Property

アプリケーションがパフォーマンス カウンタを更新する頻度を示す TimeSpan オブジェクトを取得または設定します。

名前空間: Microsoft.SqlServer.Management.Nmo
アセンブリ: Microsoft.SqlServer.Smo (microsoft.sqlserver.smo.dll 内)

構文

'宣言
Public Property PerformanceQueryInterval As TimeSpan
public TimeSpan PerformanceQueryInterval { get; set; }
public:
property TimeSpan PerformanceQueryInterval {
    TimeSpan get ();
    void set (TimeSpan value);
}
/** @property */
public TimeSpan get_PerformanceQueryInterval ()

/** @property */
public void set_PerformanceQueryInterval (TimeSpan value)
public function get PerformanceQueryInterval () : TimeSpan

public function set PerformanceQueryInterval (value : TimeSpan)

プロパティ値

アプリケーションがパフォーマンス カウンタを更新する頻度を示す TimeSpan オブジェクトです。

解説

更新されたテキスト :2005 年 12 月 5 日

Application(Instance,String) コンストラクタを使用する場合、既定値は 60 秒です。既定のコンストラクタを使用する場合、このプロパティを設定する必要があります。

使用例

次の例は、パフォーマンス クエリ間隔を含むすべてのアプリケーション実行設定の設定方法を示しています。

// Define application execution settings
myApplication.QuantumDuration = new TimeSpan(0, 0, 15);
myApplication.PerformanceQueryInterval = new TimeSpan(0, 0, 5);
myApplication.SubscriptionQuantumLimit = 1;
myApplication.ChronicleQuantumLimit = 1;
myApplication.VacuumRetentionAge = new TimeSpan(0, 0, 1);
myApplication.LogBeforeDeliveryAttempts = false;
myApplication.LogNotificationText = false;
myApplication.LogStatusInfo = false;
myApplication.EventThrottle = 500;
myApplication.NotificationThrottle = 500;
myApplication.SubscriptionThrottle = 500;
myApplication.ProcessEventsInOrder = false;
' Define application execution settings
myApplication.QuantumDuration = New TimeSpan(0, 0, 15)
myApplication.PerformanceQueryInterval = New TimeSpan(0, 0, 5)
myApplication.SubscriptionQuantumLimit = 1
myApplication.ChronicleQuantumLimit = 1
myApplication.VacuumRetentionAge = New TimeSpan(0, 0, 1)
myApplication.LogBeforeDeliveryAttempts = False
myApplication.LogNotificationText = False
myApplication.LogStatusInfo = False
myApplication.EventThrottle = 500
myApplication.NotificationThrottle = 500
myApplication.SubscriptionThrottle = 500
myApplication.ProcessEventsInOrder = False

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

Application Class
Application Members
Microsoft.SqlServer.Management.Nmo Namespace

その他の技術情報

Notification Services パフォーマンス オブジェクト
パフォーマンス クエリ間隔の指定
PerformanceQueryInterval 要素 (ADF)