Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

System オブジェクト

System オブジェクトは、Caché コンポーネントのプロパティやメソッドへのアクセスを提供します。

概要

System オブジェクトは、グローバル・スコープの内部オブジェクトです。インスタンスを生成する必要はありません。

プログラムは、System オブジェクトを使用して、ActivateCSPEncryptionHelpOBJSQLVersion などのコンポーネントのプロパティやメソッドにアクセスします。

System オブジェクトに関する詳細は、"%SYSTEM" パッケージのクラス定義を参照してください。

以下の例は System オブジェクトの使用法を示しています。

Println System.Version.GetCompBuildOS() 
    ' prints the OS version
    ' for which this Caché Version was built
Println System.Version.GetNumber()      'prints the Version number
Println System.Version.GetVersion()     'prints the Version string

System オブジェクトは、ObjectScript では $System で参照し、Caché Basic では System で参照します。

メモ

System オブジェクトは、Basic プログラムの任意の場所から参照可能です。

FeedbackOpens in a new tab