Class: WMI::Win32_NetworkAdapter

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

Overview

Win32_NetworkAdapter クラスは、Win32 システム上のネットワーク アダプタを表します。

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

- (string) AdapterType (readonly)

AdapterType プロパティは、使用中のネットワーク メディアを反映します。

 

Returns:

  • (string)

    AdapterType



33
34
35
# File 'lib/Win32_NetworkAdapter.rb', line 33

def AdapterType
  @AdapterType
end

- (uint16) AdapterTypeId (readonly)

AdapterTypeId プロパティは、使用中のネットワーク メディアを反映します。

 

Returns:

  • (uint16)

    AdapterTypeId



55
56
57
# File 'lib/Win32_NetworkAdapter.rb', line 55

def AdapterTypeId
  @AdapterTypeId
end

- (boolean) AutoSense (readonly)

NetworkAdapter が自動的に速度、または接続されたネットワーク メディアのほかの通信の特性を決定できるかどうかを示すプール値です。

Returns:

  • (boolean)

    AutoSense



60
61
62
# File 'lib/Win32_NetworkAdapter.rb', line 60

def AutoSense
  @AutoSense
end

- (uint16) Availability (readonly)

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

 

Returns:

  • (uint16)

    Availability



70
71
72
# File 'lib/Win32_NetworkAdapter.rb', line 70

def Availability
  @Availability
end

- (string) Caption (readonly)

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

Returns:

  • (string)

    Caption



75
76
77
# File 'lib/Win32_NetworkAdapter.rb', line 75

def Caption
  @Caption
end

- (uint32) ConfigManagerErrorCode (readonly)

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

 

Returns:

  • (uint32)

    ConfigManagerErrorCode



148
149
150
# File 'lib/Win32_NetworkAdapter.rb', line 148

def ConfigManagerErrorCode
  @ConfigManagerErrorCode
end

- (boolean) ConfigManagerUserConfig (readonly)

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

Returns:

  • (boolean)

    ConfigManagerUserConfig



153
154
155
# File 'lib/Win32_NetworkAdapter.rb', line 153

def ConfigManagerUserConfig
  @ConfigManagerUserConfig
end

- (string) CreationClassName (readonly)

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

 

Returns:

  • (string)

    CreationClassName



159
160
161
# File 'lib/Win32_NetworkAdapter.rb', line 159

def CreationClassName
  @CreationClassName
end

- (string) Description (readonly)

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

Returns:

  • (string)

    Description



165
166
167
# File 'lib/Win32_NetworkAdapter.rb', line 165

def Description
  @Description
end

- (string) DeviceID (readonly)

DeviceID プロパティには、ネットワーク アダプタをシステム上のほかのデバイスと一意に識別する文字列が含まれています。

Returns:

  • (string)

    DeviceID



170
171
172
# File 'lib/Win32_NetworkAdapter.rb', line 170

def DeviceID
  @DeviceID
end

- (boolean) ErrorCleared (readonly)

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

Returns:

  • (boolean)

    ErrorCleared



175
176
177
# File 'lib/Win32_NetworkAdapter.rb', line 175

def ErrorCleared
  @ErrorCleared
end

- (string) ErrorDescription (readonly)

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

Returns:

  • (string)

    ErrorDescription



180
181
182
# File 'lib/Win32_NetworkAdapter.rb', line 180

def ErrorDescription
  @ErrorDescription
end

- (uint32) Index (readonly)

Index プロパティは、システム レジストリに格納されているネットワーク アダプタのインデックス番号を示します。

 

Returns:

  • (uint32)

    Index



187
188
189
# File 'lib/Win32_NetworkAdapter.rb', line 187

def Index
  @Index
end

- (datetime) InstallDate (readonly)

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

 

Returns:

  • (datetime)

    InstallDate



193
194
195
# File 'lib/Win32_NetworkAdapter.rb', line 193

def InstallDate
  @InstallDate
end

- (boolean) Installed (readonly)

Installed プロパティにより、ネットワーク アダプタがシステムにインストールされているかどうかが決定されます。

 

Returns:

  • (boolean)

    Installed



204
205
206
# File 'lib/Win32_NetworkAdapter.rb', line 204

def Installed
  @Installed
end

- (uint32) LastErrorCode (readonly)

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

Returns:

  • (uint32)

    LastErrorCode



209
210
211
# File 'lib/Win32_NetworkAdapter.rb', line 209

def LastErrorCode
  @LastErrorCode
end

- (string) MACAddress (readonly)

MACAddress プロパティは、このネットワーク アダプタのメディア アクセス コントロール アドレスを示します。

 MAC 

Returns:

  • (string)

    MACAddress



216
217
218
# File 'lib/Win32_NetworkAdapter.rb', line 216

def MACAddress
  @MACAddress
end

- (string) Manufacturer (readonly)

Manufacturer プロパティは、ネットワーク アダプタの製造元名を示します。

 

Returns:

  • (string)

    Manufacturer



223
224
225
# File 'lib/Win32_NetworkAdapter.rb', line 223

def Manufacturer
  @Manufacturer
end

- (uint32) MaxNumberControlled (readonly)

MaxNumberControlled プロパティは、このネットワーク アダプタでサポートされている直接アドレス可能なポートの最大数を示します。

 

Returns:

  • (uint32)

    MaxNumberControlled



229
230
231
# File 'lib/Win32_NetworkAdapter.rb', line 229

def MaxNumberControlled
  @MaxNumberControlled
end

- (uint64) MaxSpeed (readonly)

ネットワーク アダプタの最大速度 (ビット/秒) です。

Returns:

  • (uint64)

    MaxSpeed



234
235
236
# File 'lib/Win32_NetworkAdapter.rb', line 234

def MaxSpeed
  @MaxSpeed
end

- (string) Name (readonly)

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

 

Returns:

  • (string)

    Name



240
241
242
# File 'lib/Win32_NetworkAdapter.rb', line 240

def Name
  @Name
end

- (string) NetConnectionID (readonly)

NetConnectionID プロパティは、[ネットワーク接続] フォルダにあるようにネットワーク接続名を指定します。

Returns:

  • (string)

    NetConnectionID



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

def NetConnectionID
  @NetConnectionID
end

- (uint16) NetConnectionStatus (readonly)

NetConnectionStatus は、ネットワーク アダプタのネットワークへの接続状態を示す文字列です。

 

Returns:

  • (uint16)

    NetConnectionStatus



262
263
264
# File 'lib/Win32_NetworkAdapter.rb', line 262

def NetConnectionStatus
  @NetConnectionStatus
end

- (string) NetworkAddresses (readonly)

アダプタのネットワーク アドレスを示す文字列の配列です。

Returns:

  • (string)

    NetworkAddresses



267
268
269
# File 'lib/Win32_NetworkAdapter.rb', line 267

def NetworkAddresses
  @NetworkAddresses
end

- (string) PermanentAddress (readonly)

PermanentAddress によりアダプタにハード コードされたネットワーク アドレスが定義されます。

 

Returns:

  • (string)

    PermanentAddress



275
276
277
# File 'lib/Win32_NetworkAdapter.rb', line 275

def PermanentAddress
  @PermanentAddress
end

- (string) PNPDeviceID (readonly)

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

 

Returns:

  • (string)

    PNPDeviceID



281
282
283
# File 'lib/Win32_NetworkAdapter.rb', line 281

def PNPDeviceID
  @PNPDeviceID
end

- (uint16) PowerManagementCapabilities (readonly)

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

 0="不明"

Returns:

  • (uint16)

    PowerManagementCapabilities



292
293
294
# File 'lib/Win32_NetworkAdapter.rb', line 292

def PowerManagementCapabilities
  @PowerManagementCapabilities
end

- (boolean) PowerManagementSupported (readonly)

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

 

Returns:

  • (boolean)

    PowerManagementSupported



300
301
302
# File 'lib/Win32_NetworkAdapter.rb', line 300

def PowerManagementSupported
  @PowerManagementSupported
end

- (string) ProductName (readonly)

ProductName プロパティは、ネットワーク アダプタの製品名を示します。

 

Returns:

  • (string)

    ProductName



307
308
309
# File 'lib/Win32_NetworkAdapter.rb', line 307

def ProductName
  @ProductName
end

- (string) ServiceName (readonly)

ServiceName プロパティは、ネットワーク アダプタのサービス名を示します。

 

Returns:

  • (string)

    ServiceName



315
316
317
# File 'lib/Win32_NetworkAdapter.rb', line 315

def ServiceName
  @ServiceName
end

- (uint64) Speed (readonly)

現在の秒ごとの推定帯域幅 (ビット) です。

 

Returns:

  • (uint64)

    Speed



321
322
323
# File 'lib/Win32_NetworkAdapter.rb', line 321

def Speed
  @Speed
end

- (string) Status (readonly)

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

 

Returns:

  • (string)

    Status



334
335
336
# File 'lib/Win32_NetworkAdapter.rb', line 334

def Status
  @Status
end

- (uint16) StatusInfo (readonly)

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

 

Returns:

  • (uint16)

    StatusInfo



340
341
342
# File 'lib/Win32_NetworkAdapter.rb', line 340

def StatusInfo
  @StatusInfo
end

- (string) SystemCreationClassName (readonly)

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

Returns:

  • (string)

    SystemCreationClassName



346
347
348
# File 'lib/Win32_NetworkAdapter.rb', line 346

def SystemCreationClassName
  @SystemCreationClassName
end

- (string) SystemName (readonly)

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

Returns:

  • (string)

    SystemName



351
352
353
# File 'lib/Win32_NetworkAdapter.rb', line 351

def SystemName
  @SystemName
end

- (datetime) TimeOfLastReset (readonly)

TimeOfLastReset プロパティは、ネットワーク アダプタがいつ最後にリセットされたかを示します。

Returns:

  • (datetime)

    TimeOfLastReset



356
357
358
# File 'lib/Win32_NetworkAdapter.rb', line 356

def TimeOfLastReset
  @TimeOfLastReset
end

Instance Method Details

- (uint32) Reset

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

Returns:

  • (uint32)


25
26
# File 'lib/Win32_NetworkAdapter.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_NetworkAdapter.rb', line 17

def SetPowerState PowerState, Time
end