Class: WMI::Win32_DesktopMonitor
- Inherits:
-
Base
- Object
- Base
- WMI::Win32_DesktopMonitor
- Defined in:
- lib/Win32_DesktopMonitor.rb
Overview
Win32_DesktopMonitor クラスは、コンピュータ システムに接続されたモニタの種類、またはディスプレイ デバイスを表します。
Instance Attribute Summary (collapse)
-
- (uint16) Availability
readonly
デバイスの利用可能性と状態です。.
-
- (uint32) Bandwidth
readonly
MegaHertz におけるモニタの帯域幅です。.
-
- (string) Caption
readonly
Caption プロパティは、オブジェクトについての簡単な説明 (1 行分の文字列) です。.
-
- (uint32) ConfigManagerErrorCode
readonly
Win32 構成マネージャのエラー コードを示します。.
-
- (boolean) ConfigManagerUserConfig
readonly
デバイスがユーザー定義の構成を使用しているかどうかを示します。.
-
- (string) CreationClassName
readonly
CreationClassName は、インスタンスの作成で使用されるクラス名、またはサブクラス名を示します。.
-
- (string) Description
readonly
Description プロパティでオブジェクトの説明が提供されます。.
-
- (string) DeviceID
readonly
DeviceID プロパティには、デスクトップ モニタを一意に識別する文字列が含まれています。.
-
- (uint16) DisplayType
readonly
デスクトップ モニタまたは CRT の種類です。.
-
- (boolean) ErrorCleared
readonly
ErrorCleared は LastErrorCode プロパティで報告されたエラーが現在は消去されていることを示すブール値のプロパティです。.
-
- (string) ErrorDescription
readonly
ErrorDescription は LastErrorCode プロパティで記録されたエラーに関する情報および実行される可能性がある修正の情報を提供する自由形式の文字列です。.
-
- (datetime) InstallDate
readonly
InstallDate プロパティは、オブジェクトがインストールされた日時を示す値です。.
-
- (boolean) IsLocked
readonly
ユーザーが入力または出力できないようにデバイスがロックされるかどうかを示します。.
-
- (uint32) LastErrorCode
readonly
論理デバイスで報告されたエラー コードが LastErrorCode によってキャプチャされます。.
-
- (string) MonitorManufacturer
readonly
MonitorManufacturer プロパティは、モニタ製造元名を示します。.
-
- (string) MonitorType
readonly
MonitorType プロパティはモニタの種類を示します。.
-
- (string) Name
readonly
Name プロパティで、オブジェクトを認識するラベルを定義します。.
-
- (uint32) PixelsPerXLogicalInch
readonly
PixelsPerXLogicalInch プロパティはモニタの X 軸 (水平方向) の解像度を示します。.
-
- (uint32) PixelsPerYLogicalInch
readonly
PixelsPerYLogicalInch プロパティはモニタの Y 軸 (垂直方向) の解像度を示します。.
-
- (string) PNPDeviceID
readonly
論理デバイスの Win32 プラグ アンド プレイ デバイス ID を示します。.
-
- (uint16) PowerManagementCapabilities
readonly
論理デバイスの特定の電源関連機能を示します。.
-
- (boolean) PowerManagementSupported
readonly
デバイスを電源管理できることを示すブール値です - 例、省電力状態にする。.
-
- (uint32) ScreenHeight
readonly
画面座標における表示の論理的高さです。.
-
- (uint32) ScreenWidth
readonly
画面座標における表示の論理的幅です。.
-
- (string) Status
readonly
Status プロパティはオブジェクトの現在の状態を示す文字列です。.
-
- (uint16) StatusInfo
readonly
StatusInfo は、論理デバイスが有効 (値 = 3)、無効 (値 = 4) またはその他 (1) または不明 (2) 状態であるかどうかを示す文字列です。.
-
- (string) SystemCreationClassName
readonly
スコーピング システムの CreationClassName です。.
-
- (string) SystemName
readonly
スコーピング システムの名前です。.
Instance Method Summary (collapse)
-
- (uint32) Reset
論理デバイスのリセットを要求します。 要求が正常に実行された場合、返される値は 0 で、要求がサポートされない場合は 1 です。 また、エラーが発生した場合は、ほかの値となります。.
-
- (uint32) SetPowerState(PowerState, Time)
SetPowerState により、論理デバイスの電源状態およびデバイスがいつその状態に入るかが定義されます。 電源状態は、PowerState パラメータを次の整数値の 1 つに設定することによって指定されます: 1="通常の電力"、2="省電力- 低電力モード"、3="省電力 - スタンバイ"、4="省電力 - その他"、5="電源サイクル" または 6="電源オフ"。 時間パラメータ (5 の "Power Cycle" を除くすべての状態の変更用) は、通常の日付値または間隔値 (メソッド実行の受信時に間隔が開始される) のどちらかにいつ電源状態が設定される必要があるかを示します。 PowerState パラメータが 5 ("Power Cycle") であるとき、時間パラメータはいつデバイスが再度電源オンになるかを示します。 直ちに電源をオフにします。 成功の場合、SetPowerState は 0 を返し、指定された PowerState および要求時間がサポートされていない場合は、1 を返し、ほかのエラーが発生する場合はほかの値が返されます。 サブクラスでは、可能な返信コードのセットはメソッド上の ValueMap 修飾子を使って指定することも可能です。.
Methods inherited from Base
#AddRef, #AssociatorsAsync_, #Associators_, #Clone_, #CompareTo_, #DeleteAsync_, #Delete_, #Derivation_, #ExecMethodAsync_, #ExecMethod_, #GetIDsOfNames, #GetObjectText_, #GetText_, #GetTypeInfo, #GetTypeInfoCount, #InstancesAsync_, #Instances_, #Invoke, #Methods_, #Path_, #Properties_, #PutAsync_, #Put_, #Qualifiers_, #QueryInterface, #ReferencesAsync_, #References_, #Refresh_, #Release, #Security_, #SetFromText_, #SpawnDerivedClass_, #SpawnInstance_, #SubclassesAsync_, #Subclasses_, #SystemProperties_
Instance Attribute Details
- (uint16) Availability (readonly)
デバイスの利用可能性と状態です。
36 37 38 |
# File 'lib/Win32_DesktopMonitor.rb', line 36 def Availability @Availability end |
- (uint32) Bandwidth (readonly)
MegaHertz におけるモニタの帯域幅です。
42 43 44 |
# File 'lib/Win32_DesktopMonitor.rb', line 42 def Bandwidth @Bandwidth end |
- (string) Caption (readonly)
Caption プロパティは、オブジェクトについての簡単な説明 (1 行分の文字列) です。
47 48 49 |
# File 'lib/Win32_DesktopMonitor.rb', line 47 def Caption @Caption end |
- (uint32) ConfigManagerErrorCode (readonly)
Win32 構成マネージャのエラー コードを示します。
120 121 122 |
# File 'lib/Win32_DesktopMonitor.rb', line 120 def ConfigManagerErrorCode @ConfigManagerErrorCode end |
- (boolean) ConfigManagerUserConfig (readonly)
デバイスがユーザー定義の構成を使用しているかどうかを示します。
125 126 127 |
# File 'lib/Win32_DesktopMonitor.rb', line 125 def ConfigManagerUserConfig @ConfigManagerUserConfig end |
- (string) CreationClassName (readonly)
CreationClassName は、インスタンスの作成で使用されるクラス名、またはサブクラス名を示します。
131 132 133 |
# File 'lib/Win32_DesktopMonitor.rb', line 131 def CreationClassName @CreationClassName end |
- (string) Description (readonly)
Description プロパティでオブジェクトの説明が提供されます。
137 138 139 |
# File 'lib/Win32_DesktopMonitor.rb', line 137 def Description @Description end |
- (string) DeviceID (readonly)
DeviceID プロパティには、デスクトップ モニタを一意に識別する文字列が含まれています。
144 145 146 |
# File 'lib/Win32_DesktopMonitor.rb', line 144 def DeviceID @DeviceID end |
- (uint16) DisplayType (readonly)
デスクトップ モニタまたは CRT の種類です。
150 151 152 |
# File 'lib/Win32_DesktopMonitor.rb', line 150 def DisplayType @DisplayType end |
- (boolean) ErrorCleared (readonly)
ErrorCleared は LastErrorCode プロパティで報告されたエラーが現在は消去されていることを示すブール値のプロパティです。
155 156 157 |
# File 'lib/Win32_DesktopMonitor.rb', line 155 def ErrorCleared @ErrorCleared end |
- (string) ErrorDescription (readonly)
ErrorDescription は LastErrorCode プロパティで記録されたエラーに関する情報および実行される可能性がある修正の情報を提供する自由形式の文字列です。
160 161 162 |
# File 'lib/Win32_DesktopMonitor.rb', line 160 def ErrorDescription @ErrorDescription end |
- (datetime) InstallDate (readonly)
InstallDate プロパティは、オブジェクトがインストールされた日時を示す値です。
166 167 168 |
# File 'lib/Win32_DesktopMonitor.rb', line 166 def InstallDate @InstallDate end |
- (boolean) IsLocked (readonly)
ユーザーが入力または出力できないようにデバイスがロックされるかどうかを示します。
171 172 173 |
# File 'lib/Win32_DesktopMonitor.rb', line 171 def IsLocked @IsLocked end |
- (uint32) LastErrorCode (readonly)
論理デバイスで報告されたエラー コードが LastErrorCode によってキャプチャされます。
176 177 178 |
# File 'lib/Win32_DesktopMonitor.rb', line 176 def LastErrorCode @LastErrorCode end |
- (string) MonitorManufacturer (readonly)
MonitorManufacturer プロパティは、モニタ製造元名を示します。
183 184 185 |
# File 'lib/Win32_DesktopMonitor.rb', line 183 def MonitorManufacturer @MonitorManufacturer end |
- (string) MonitorType (readonly)
MonitorType プロパティはモニタの種類を示します。
190 191 192 |
# File 'lib/Win32_DesktopMonitor.rb', line 190 def MonitorType @MonitorType end |
- (string) Name (readonly)
Name プロパティで、オブジェクトを認識するラベルを定義します。
196 197 198 |
# File 'lib/Win32_DesktopMonitor.rb', line 196 def Name @Name end |
- (uint32) PixelsPerXLogicalInch (readonly)
PixelsPerXLogicalInch プロパティはモニタの X 軸 (水平方向) の解像度を示します。
201 202 203 |
# File 'lib/Win32_DesktopMonitor.rb', line 201 def PixelsPerXLogicalInch @PixelsPerXLogicalInch end |
- (uint32) PixelsPerYLogicalInch (readonly)
PixelsPerYLogicalInch プロパティはモニタの Y 軸 (垂直方向) の解像度を示します。
206 207 208 |
# File 'lib/Win32_DesktopMonitor.rb', line 206 def PixelsPerYLogicalInch @PixelsPerYLogicalInch end |
- (string) PNPDeviceID (readonly)
論理デバイスの Win32 プラグ アンド プレイ デバイス ID を示します。
212 213 214 |
# File 'lib/Win32_DesktopMonitor.rb', line 212 def PNPDeviceID @PNPDeviceID end |
- (uint16) PowerManagementCapabilities (readonly)
論理デバイスの特定の電源関連機能を示します。
0="不明"
223 224 225 |
# File 'lib/Win32_DesktopMonitor.rb', line 223 def PowerManagementCapabilities @PowerManagementCapabilities end |
- (boolean) PowerManagementSupported (readonly)
デバイスを電源管理できることを示すブール値です - 例、省電力状態にする。
231 232 233 |
# File 'lib/Win32_DesktopMonitor.rb', line 231 def PowerManagementSupported @PowerManagementSupported end |
- (uint32) ScreenHeight (readonly)
画面座標における表示の論理的高さです。
236 237 238 |
# File 'lib/Win32_DesktopMonitor.rb', line 236 def ScreenHeight @ScreenHeight end |
- (uint32) ScreenWidth (readonly)
画面座標における表示の論理的幅です。
241 242 243 |
# File 'lib/Win32_DesktopMonitor.rb', line 241 def ScreenWidth @ScreenWidth end |
- (string) Status (readonly)
Status プロパティはオブジェクトの現在の状態を示す文字列です。
254 255 256 |
# File 'lib/Win32_DesktopMonitor.rb', line 254 def Status @Status end |
- (uint16) StatusInfo (readonly)
StatusInfo は、論理デバイスが有効 (値 = 3)、無効 (値 = 4) またはその他 (1) または不明 (2) 状態であるかどうかを示す文字列です。
260 261 262 |
# File 'lib/Win32_DesktopMonitor.rb', line 260 def StatusInfo @StatusInfo end |
- (string) SystemCreationClassName (readonly)
スコーピング システムの CreationClassName です。
266 267 268 |
# File 'lib/Win32_DesktopMonitor.rb', line 266 def SystemCreationClassName @SystemCreationClassName end |
- (string) SystemName (readonly)
スコーピング システムの名前です。
271 272 273 |
# File 'lib/Win32_DesktopMonitor.rb', line 271 def SystemName @SystemName end |
Instance Method Details
- (uint32) Reset
論理デバイスのリセットを要求します。 要求が正常に実行された場合、返される値は 0 で、要求がサポートされない場合は 1 です。 また、エラーが発生した場合は、ほかの値となります。
25 26 |
# File 'lib/Win32_DesktopMonitor.rb', line 25 def Reset end |
- (uint32) SetPowerState(PowerState, Time)
SetPowerState により、論理デバイスの電源状態およびデバイスがいつその状態に入るかが定義されます。 電源状態は、PowerState パラメータを次の整数値の 1 つに設定することによって指定されます: 1="通常の電力"、2="省電力- 低電力モード"、3="省電力 - スタンバイ"、4="省電力 - その他"、5="電源サイクル" または 6="電源オフ"。 時間パラメータ (5 の "Power Cycle" を除くすべての状態の変更用) は、通常の日付値または間隔値 (メソッド実行の受信時に間隔が開始される) のどちらかにいつ電源状態が設定される必要があるかを示します。 PowerState パラメータが 5 ("Power Cycle") であるとき、時間パラメータはいつデバイスが再度電源オンになるかを示します。 直ちに電源をオフにします。 成功の場合、SetPowerState は 0 を返し、指定された PowerState および要求時間がサポートされていない場合は、1 を返し、ほかのエラーが発生する場合はほかの値が返されます。 サブクラスでは、可能な返信コードのセットはメソッド上の ValueMap 修飾子を使って指定することも可能です。
ValueMap
値の配置修飾子としてサブクラスで指定される場合もあります。
17 18 |
# File 'lib/Win32_DesktopMonitor.rb', line 17 def SetPowerState PowerState, Time end |