Class: WMI::Win32_SMBIOSMemory

Inherits:
Base
  • Object
show all
Defined in:
lib/Win32_SMBIOSMemory.rb

Overview

Win32_SMBIOSMemory クラスは、System Management BIOS (SMBIOS) インターフェイスで参照されるコンピュータ システムのメモリのプロパティを表します。SMBIOS インタフェースでは、不揮発性、揮発性、およびフラッシュ メモリの区別はありません。このように、CIM_Memory クラスはすべての種類のメモリの親クラスです。

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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) Access (readonly)

Access はメディアが読み取り可能 (値 = 1) かどうか、書き込み可能 (値 = 2) かどうか、またはその両方 (値 = 3) かどうかを説明します。

 "不明" (0) 

Returns:

  • (uint16)

    Access



32
33
34
# File 'lib/Win32_SMBIOSMemory.rb', line 32

def Access
  @Access
end

- (uint8) AdditionalErrorData (readonly)

AdditionalErrorData プロパティには、エラー情報がさらに含まれています。

 

Returns:

  • (uint8)

    AdditionalErrorData



41
42
43
# File 'lib/Win32_SMBIOSMemory.rb', line 41

def AdditionalErrorData
  @AdditionalErrorData
end

- (uint16) Availability (readonly)

デバイスの利用可能性と状態です。

 

Returns:

  • (uint16)

    Availability



51
52
53
# File 'lib/Win32_SMBIOSMemory.rb', line 51

def Availability
  @Availability
end

- (uint64) BlockSize (readonly)

この StorageExtent を形成するブロックのサイズ (バイト) です。

 

Returns:

  • (uint64)

    BlockSize



58
59
60
# File 'lib/Win32_SMBIOSMemory.rb', line 58

def BlockSize
  @BlockSize
end

- (string) Caption (readonly)

Caption プロパティは、オブジェクトについての簡単な説明 (1 行分の文字列) です。

Returns:

  • (string)

    Caption



63
64
65
# File 'lib/Win32_SMBIOSMemory.rb', line 63

def Caption
  @Caption
end

- (uint32) ConfigManagerErrorCode (readonly)

Win32 構成マネージャのエラー コードを示します。

 

Returns:

  • (uint32)

    ConfigManagerErrorCode



136
137
138
# File 'lib/Win32_SMBIOSMemory.rb', line 136

def ConfigManagerErrorCode
  @ConfigManagerErrorCode
end

- (boolean) ConfigManagerUserConfig (readonly)

デバイスがユーザー定義の構成を使用しているかどうかを示します。

Returns:

  • (boolean)

    ConfigManagerUserConfig



141
142
143
# File 'lib/Win32_SMBIOSMemory.rb', line 141

def ConfigManagerUserConfig
  @ConfigManagerUserConfig
end

- (boolean) CorrectableError (readonly)

CorrectableError プロパティは、最新のエラーが修正可能であるかどうかを示します。

 

Returns:

  • (boolean)

    CorrectableError



150
151
152
# File 'lib/Win32_SMBIOSMemory.rb', line 150

def CorrectableError
  @CorrectableError
end

- (string) CreationClassName (readonly)

CreationClassName は、インスタンスの作成で使用されるクラス名、またはサブクラス名を示します。

 

Returns:

  • (string)

    CreationClassName



156
157
158
# File 'lib/Win32_SMBIOSMemory.rb', line 156

def CreationClassName
  @CreationClassName
end

- (string) Description (readonly)

Description プロパティでオブジェクトの説明が提供されます。

Returns:

  • (string)

    Description



162
163
164
# File 'lib/Win32_SMBIOSMemory.rb', line 162

def Description
  @Description
end

- (string) DeviceID (readonly)

DeviceID は論理デバイスを一意に名前付けするためのアドレス、またはほかの識別情報です。

Returns:

  • (string)

    DeviceID



167
168
169
# File 'lib/Win32_SMBIOSMemory.rb', line 167

def DeviceID
  @DeviceID
end

- (uint64) EndingAddress (readonly)

EndingAddress プロパティにより、アプリケーションまたはオペレーティング システムによって参照される終了アドレスが指定されます。

 

Returns:

  • (uint64)

    EndingAddress



173
174
175
# File 'lib/Win32_SMBIOSMemory.rb', line 173

def EndingAddress
  @EndingAddress
end

- (uint16) ErrorAccess (readonly)

ErrorAccess プロパティは、前回のエラーを発生させたメモリ アクセス操作を示します。

 

Returns:

  • (uint16)

    ErrorAccess



179
180
181
# File 'lib/Win32_SMBIOSMemory.rb', line 179

def ErrorAccess
  @ErrorAccess
end

- (uint64) ErrorAddress (readonly)

ErrorAddress プロパティにより、前回のメモリ エラーのアドレスが指定されます。

 

Returns:

  • (uint64)

    ErrorAddress



185
186
187
# File 'lib/Win32_SMBIOSMemory.rb', line 185

def ErrorAddress
  @ErrorAddress
end

- (boolean) ErrorCleared (readonly)

ErrorCleared は LastErrorCode プロパティで報告されたエラーが現在は消去されていることを示すブール値のプロパティです。

Returns:

  • (boolean)

    ErrorCleared



190
191
192
# File 'lib/Win32_SMBIOSMemory.rb', line 190

def ErrorCleared
  @ErrorCleared
end

- (uint8) ErrorData (readonly)

ErrorData プロパティには、エラーが発生した前回のメモリ アクセスから取得されたデータが含まれています。

 ErrorTransferSize 

Returns:

  • (uint8)

    ErrorData



197
198
199
# File 'lib/Win32_SMBIOSMemory.rb', line 197

def ErrorData
  @ErrorData
end

- (uint16) ErrorDataOrder (readonly)

ErrorDataOrder プロパティは、ErrorData プロパティに保存されたデータの順序を示します。

 

Returns:

  • (uint16)

    ErrorDataOrder



203
204
205
# File 'lib/Win32_SMBIOSMemory.rb', line 203

def ErrorDataOrder
  @ErrorDataOrder
end

- (string) ErrorDescription (readonly)

ErrorDescription は LastErrorCode プロパティで記録されたエラーに関する情報および実行される可能性がある修正の情報を提供する自由形式の文字列です。

Returns:

  • (string)

    ErrorDescription



208
209
210
# File 'lib/Win32_SMBIOSMemory.rb', line 208

def ErrorDescription
  @ErrorDescription
end

- (uint16) ErrorInfo (readonly)

ErrorInfo プロパティには、最近発生したエラーの種類を説明する整数の列挙が含まれています。

 

Returns:

  • (uint16)

    ErrorInfo



215
216
217
# File 'lib/Win32_SMBIOSMemory.rb', line 215

def ErrorInfo
  @ErrorInfo
end

- (string) ErrorMethodology (readonly)

ErrorMethodology プロパティにより、メモリ ハードウェアによって使用されるエラー チェックの種類が指定されます。

Returns:

  • (string)

    ErrorMethodology



220
221
222
# File 'lib/Win32_SMBIOSMemory.rb', line 220

def ErrorMethodology
  @ErrorMethodology
end

- (uint64) ErrorResolution (readonly)

ErrorResolution プロパティにより、実際にエラーを発生させるデータの量が指定されます。

 

Returns:

  • (uint64)

    ErrorResolution



226
227
228
# File 'lib/Win32_SMBIOSMemory.rb', line 226

def ErrorResolution
  @ErrorResolution
end

- (datetime) ErrorTime (readonly)

ErrorTime プロパティには、前回のメモリ エラーが発生した時間が含まれています。

 

Returns:

  • (datetime)

    ErrorTime



232
233
234
# File 'lib/Win32_SMBIOSMemory.rb', line 232

def ErrorTime
  @ErrorTime
end

- (uint32) ErrorTransferSize (readonly)

ErrorTransferSize プロパティにより、転送されるデータのサイズが指定されます。

 

Returns:

  • (uint32)

    ErrorTransferSize



239
240
241
# File 'lib/Win32_SMBIOSMemory.rb', line 239

def ErrorTransferSize
  @ErrorTransferSize
end

- (datetime) InstallDate (readonly)

InstallDate プロパティは、オブジェクトがインストールされた日時を示す値です。

 

Returns:

  • (datetime)

    InstallDate



245
246
247
# File 'lib/Win32_SMBIOSMemory.rb', line 245

def InstallDate
  @InstallDate
end

- (uint32) LastErrorCode (readonly)

論理デバイスで報告されたエラー コードが LastErrorCode によってキャプチャされます。

Returns:

  • (uint32)

    LastErrorCode



250
251
252
# File 'lib/Win32_SMBIOSMemory.rb', line 250

def LastErrorCode
  @LastErrorCode
end

- (string) Name (readonly)

Name プロパティで、オブジェクトを認識するラベルを定義します。

 

Returns:

  • (string)

    Name



256
257
258
# File 'lib/Win32_SMBIOSMemory.rb', line 256

def Name
  @Name
end

- (string) OtherErrorDescription (readonly)

OtherErrorDescription プロパティで、ErrorInfo プロパティが 1 に設定されているときの情報が提供されます。

Returns:

  • (string)

    OtherErrorDescription



268
269
270
# File 'lib/Win32_SMBIOSMemory.rb', line 268

def OtherErrorDescription
  @OtherErrorDescription
end

- (string) PNPDeviceID (readonly)

論理デバイスの Win32 プラグ アンド プレイ デバイス ID を示します。

 

Returns:

  • (string)

    PNPDeviceID



274
275
276
# File 'lib/Win32_SMBIOSMemory.rb', line 274

def PNPDeviceID
  @PNPDeviceID
end

- (uint16) PowerManagementCapabilities (readonly)

論理デバイスの特定の電源関連機能を示します。

 0="不明"

Returns:

  • (uint16)

    PowerManagementCapabilities



285
286
287
# File 'lib/Win32_SMBIOSMemory.rb', line 285

def PowerManagementCapabilities
  @PowerManagementCapabilities
end

- (boolean) PowerManagementSupported (readonly)

デバイスを電源管理できることを示すブール値です - 例、省電力状態にする。

 

Returns:

  • (boolean)

    PowerManagementSupported



293
294
295
# File 'lib/Win32_SMBIOSMemory.rb', line 293

def PowerManagementSupported
  @PowerManagementSupported
end

- (string) Purpose (readonly)

メディアおよび (または) その使用を説明する自由形式の文字列です。

Returns:

  • (string)

    Purpose



298
299
300
# File 'lib/Win32_SMBIOSMemory.rb', line 298

def Purpose
  @Purpose
end

- (uint64) StartingAddress (readonly)

StartingAddress プロパティにより、アプリケーションまたはオペレーティング システムに参照される先頭アドレスが指定されます。

 

Returns:

  • (uint64)

    StartingAddress



304
305
306
# File 'lib/Win32_SMBIOSMemory.rb', line 304

def StartingAddress
  @StartingAddress
end

- (string) Status (readonly)

Status プロパティはオブジェクトの現在の状態を示す文字列です。

 

Returns:

  • (string)

    Status



317
318
319
# File 'lib/Win32_SMBIOSMemory.rb', line 317

def Status
  @Status
end

- (uint16) StatusInfo (readonly)

StatusInfo は、論理デバイスが有効 (値 = 3)、無効 (値 = 4) またはその他 (1) または不明 (2) 状態であるかどうかを示す文字列です。

 

Returns:

  • (uint16)

    StatusInfo



323
324
325
# File 'lib/Win32_SMBIOSMemory.rb', line 323

def StatusInfo
  @StatusInfo
end

- (string) SystemCreationClassName (readonly)

スコーピング システムの CreationClassName です。

Returns:

  • (string)

    SystemCreationClassName



329
330
331
# File 'lib/Win32_SMBIOSMemory.rb', line 329

def SystemCreationClassName
  @SystemCreationClassName
end

- (boolean) SystemLevelAddress (readonly)

SystemLevelAddress プロパティは、ErrorAddress プロパティのアドレス情報がシステム レベル アドレス (TRUE) か物理アドレス (FALSE) かを示します。

  

Returns:

  • (boolean)

    SystemLevelAddress



338
339
340
# File 'lib/Win32_SMBIOSMemory.rb', line 338

def SystemLevelAddress
  @SystemLevelAddress
end

- (string) SystemName (readonly)

スコーピング システムの名前です。

Returns:

  • (string)

    SystemName



343
344
345
# File 'lib/Win32_SMBIOSMemory.rb', line 343

def SystemName
  @SystemName
end

Instance Method Details

- (uint32) Reset

論理デバイスのリセットを要求します。 要求が正常に実行された場合、返される値は 0 で、要求がサポートされない場合は 1 です。 また、エラーが発生した場合は、ほかの値となります。

Returns:

  • (uint32)


25
26
# File 'lib/Win32_SMBIOSMemory.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 

値の配置修飾子としてサブクラスで指定される場合もあります。

Parameters:

  • (uint16, #read) PowerState
  • (datetime, #read) Time

Returns:

  • (uint32)


17
18
# File 'lib/Win32_SMBIOSMemory.rb', line 17

def SetPowerState PowerState, Time
end