Class: WMI::CIM_Printer
Overview
プリンタの LogicalDevice の機能と管理です。
Instance Attribute Summary (collapse)
-
- (uint16) Availability
readonly
デバイスの利用可能性と状態です。.
-
- (string) AvailableJobSheets
readonly
プリンタで利用可能なすべてのジョブ シートを記述しています。.
-
- (uint16) Capabilities
readonly
プリンタ機能を示す整数の配列です。.
-
- (string) CapabilityDescriptions
readonly
Capabilities 配列で示されるプリンタ機能に詳細な説明を提供する自由形式の文字列の配列です。.
-
- (string) Caption
readonly
Caption プロパティは、オブジェクトについての簡単な説明 (1 行分の文字列) です。.
-
- (string) CharSetsSupported
readonly
プリンタの管理に関連するテキストの出力に利用可能な文字セットを示します。.
-
- (uint32) ConfigManagerErrorCode
readonly
Win32 構成マネージャのエラー コードを示します。.
-
- (boolean) ConfigManagerUserConfig
readonly
デバイスがユーザー定義の構成を使用しているかどうかを示します。.
-
- (string) CreationClassName
readonly
CreationClassName は、インスタンスの作成で使用されるクラス名、またはサブクラス名を示します。.
-
- (uint16) CurrentCapabilities
readonly
現在使用されている、仕上がりとプリンタのほかの機能を指定します。.
-
- (string) CurrentCharSet
readonly
プリンタの管理に関連するテキストの出力に使用されている現在の文字セットを指定します。.
-
- (uint16) CurrentLanguage
readonly
現在使用中のプリンタの言語を示します。.
-
- (string) CurrentMimeType
readonly
CurrentLanguage が MIME の種類が使用中であることを示す設定である場合は (値 = 47)、プリンタに現在使用されている MIME の種類を指定します。.
-
- (string) CurrentNaturalLanguage
readonly
管理用のプリンタに現在使用されている言語を示します。.
-
- (string) CurrentPaperType
readonly
プリンタが現在使用中の用紙の種類を指定します。.
-
- (uint16) DefaultCapabilities
readonly
仕上がりおよびプリンタのほかの機能の既定の設定を指定します。.
-
- (uint32) DefaultCopies
readonly
指定されていない場合に 単一のジョブで印刷される部数です。.
-
- (uint16) DefaultLanguage
readonly
プリンタの既定の言語を示します。.
-
- (string) DefaultMimeType
readonly
DefaultLanguage が MIME の種類が使用中であることを示す設定である場合は (値 = 47)、プリンタに使用される既定の MIME の種類を指定します。.
-
- (uint32) DefaultNumberUp
readonly
ジョブに指定が去れていない場合に、プリンタが単一のメディア シートに送る印刷 - ストリームの最大部数です。.
-
- (string) DefaultPaperType
readonly
印刷ジョブが特定の種類を指定しない場合は、プリンタが使用する用紙の種類を指定します。.
-
- (string) Description
readonly
Description プロパティでオブジェクトの説明が提供されます。.
-
- (uint16) DetectedErrorState
readonly
プリンタ エラー情報です。.
-
- (string) DeviceID
readonly
DeviceID は論理デバイスを一意に名前付けするためのアドレス、またはほかの識別情報です。.
-
- (boolean) ErrorCleared
readonly
ErrorCleared は LastErrorCode プロパティで報告されたエラーが現在は消去されていることを示すブール値のプロパティです。.
-
- (string) ErrorDescription
readonly
ErrorDescription は LastErrorCode プロパティで記録されたエラーに関する情報および実行される可能性がある修正の情報を提供する自由形式の文字列です。.
-
- (string) ErrorInformation
現在のエラー状態の補足情報を提供しているDetectedErrorState で示されている配列です。.
-
- (uint32) HorizontalResolution
readonly
プリンタの水平方向の解像度 (ピクセル/インチ) です。.
-
- (datetime) InstallDate
readonly
InstallDate プロパティは、オブジェクトがインストールされた日時を示す値です。.
-
- (uint32) JobCountSinceLastReset
readonly
前回のリセット後に処理された印刷ジョブです。.
-
- (uint16) LanguagesSupported
readonly
サポートされている印刷言語を示す配列です。.
-
- (uint32) LastErrorCode
readonly
論理デバイスで報告されたエラー コードが LastErrorCode によってキャプチャされます。.
-
- (uint16) MarkingTechnology
readonly
プリンタで使用されているマークされているテクノロジです。.
-
- (uint32) MaxCopies
readonly
単一のジョブでプリンタから印刷できる最大部数です。.
-
- (uint32) MaxNumberUp
readonly
プリンタが単一のメディア シートに送ることのできる印刷 - ストリームの最大部数です。.
-
- (uint32) MaxSizeSupported
readonly
プリンタが KB の単位で受け入れる最大ジョブ (バイト ストリームとしての)を指定します。.
-
- (string) MimeTypesSupported
readonly
プリンタにサポートされている MIME の種類の詳細な情報を提供する自由形式の文字列の配列です。.
-
- (string) Name
readonly
Name プロパティで、オブジェクトを認識するラベルを定義します。.
-
- (string) NaturalLanguagesSupported
readonly
管理情報の出力用のプリンタに使用されている文字列に利用可能な言語を示します。.
-
- (uint16) PaperSizesSupported
readonly
用紙の種類を示す整数の配列です。.
-
- (string) PaperTypesAvailable
readonly
プリンタで現在利用可能な用紙の種類を指定する自由形式の文字列の配列です。.
-
- (string) PNPDeviceID
readonly
論理デバイスの Win32 プラグ アンド プレイ デバイス ID を示します。.
-
- (uint16) PowerManagementCapabilities
readonly
論理デバイスの特定の電源関連機能を示します。.
-
- (boolean) PowerManagementSupported
readonly
デバイスを電源管理できることを示すブール値です - 例、省電力状態にする。.
-
- (uint16) PrinterStatus
readonly
論理デバイスの Availability プロパティで指定されたプリンタの状態よりも詳細な情報です。.
-
- (string) Status
readonly
Status プロパティはオブジェクトの現在の状態を示す文字列です。.
-
- (uint16) StatusInfo
readonly
StatusInfo は、論理デバイスが有効 (値 = 3)、無効 (値 = 4) またはその他 (1) または不明 (2) 状態であるかどうかを示す文字列です。.
-
- (string) SystemCreationClassName
readonly
スコーピング システムの CreationClassName です。.
-
- (string) SystemName
readonly
スコーピング システムの名前です。.
-
- (datetime) TimeOfLastReset
readonly
プリンタ デバイスの前回のリセットの時刻です。.
-
- (uint32) VerticalResolution
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/CIM_Printer.rb', line 36 def Availability @Availability end |
- (string) AvailableJobSheets (readonly)
プリンタで利用可能なすべてのジョブ シートを記述しています。
43 44 45 |
# File 'lib/CIM_Printer.rb', line 43 def AvailableJobSheets @AvailableJobSheets end |
- (uint16) Capabilities (readonly)
プリンタ機能を示す整数の配列です。
"両面印刷" (
49 50 51 |
# File 'lib/CIM_Printer.rb', line 49 def Capabilities @Capabilities end |
- (string) CapabilityDescriptions (readonly)
Capabilities 配列で示されるプリンタ機能に詳細な説明を提供する自由形式の文字列の配列です。
55 56 57 |
# File 'lib/CIM_Printer.rb', line 55 def CapabilityDescriptions @CapabilityDescriptions end |
- (string) Caption (readonly)
Caption プロパティは、オブジェクトについての簡単な説明 (1 行分の文字列) です。
60 61 62 |
# File 'lib/CIM_Printer.rb', line 60 def Caption @Caption end |
- (string) CharSetsSupported (readonly)
プリンタの管理に関連するテキストの出力に利用可能な文字セットを示します。
67 68 69 |
# File 'lib/CIM_Printer.rb', line 67 def CharSetsSupported @CharSetsSupported end |
- (uint32) ConfigManagerErrorCode (readonly)
Win32 構成マネージャのエラー コードを示します。
140 141 142 |
# File 'lib/CIM_Printer.rb', line 140 def ConfigManagerErrorCode @ConfigManagerErrorCode end |
- (boolean) ConfigManagerUserConfig (readonly)
デバイスがユーザー定義の構成を使用しているかどうかを示します。
145 146 147 |
# File 'lib/CIM_Printer.rb', line 145 def ConfigManagerUserConfig @ConfigManagerUserConfig end |
- (string) CreationClassName (readonly)
CreationClassName は、インスタンスの作成で使用されるクラス名、またはサブクラス名を示します。
151 152 153 |
# File 'lib/CIM_Printer.rb', line 151 def CreationClassName @CreationClassName end |
- (uint16) CurrentCapabilities (readonly)
現在使用されている、仕上がりとプリンタのほかの機能を指定します。
157 158 159 |
# File 'lib/CIM_Printer.rb', line 157 def CurrentCapabilities @CurrentCapabilities end |
- (string) CurrentCharSet (readonly)
プリンタの管理に関連するテキストの出力に使用されている現在の文字セットを指定します。
165 166 167 |
# File 'lib/CIM_Printer.rb', line 165 def CurrentCharSet @CurrentCharSet end |
- (uint16) CurrentLanguage (readonly)
現在使用中のプリンタの言語を示します。
171 172 173 |
# File 'lib/CIM_Printer.rb', line 171 def CurrentLanguage @CurrentLanguage end |
- (string) CurrentMimeType (readonly)
CurrentLanguage が MIME の種類が使用中であることを示す設定である場合は (値 = 47)、プリンタに現在使用されている MIME の種類を指定します。
176 177 178 |
# File 'lib/CIM_Printer.rb', line 176 def CurrentMimeType @CurrentMimeType end |
- (string) CurrentNaturalLanguage (readonly)
管理用のプリンタに現在使用されている言語を示します。
CurrentNaturalLanguage
183 184 185 |
# File 'lib/CIM_Printer.rb', line 183 def CurrentNaturalLanguage @CurrentNaturalLanguage end |
- (string) CurrentPaperType (readonly)
プリンタが現在使用中の用紙の種類を指定します。
190 191 192 |
# File 'lib/CIM_Printer.rb', line 190 def CurrentPaperType @CurrentPaperType end |
- (uint16) DefaultCapabilities (readonly)
仕上がりおよびプリンタのほかの機能の既定の設定を指定します。
DefaultCapabilities
197 198 199 |
# File 'lib/CIM_Printer.rb', line 197 def DefaultCapabilities @DefaultCapabilities end |
- (uint32) DefaultCopies (readonly)
指定されていない場合に 単一のジョブで印刷される部数です。
202 203 204 |
# File 'lib/CIM_Printer.rb', line 202 def DefaultCopies @DefaultCopies end |
- (uint16) DefaultLanguage (readonly)
プリンタの既定の言語を示します。
208 209 210 |
# File 'lib/CIM_Printer.rb', line 208 def DefaultLanguage @DefaultLanguage end |
- (string) DefaultMimeType (readonly)
DefaultLanguage が MIME の種類が使用中であることを示す設定である場合は (値 = 47)、プリンタに使用される既定の MIME の種類を指定します。
213 214 215 |
# File 'lib/CIM_Printer.rb', line 213 def DefaultMimeType @DefaultMimeType end |
- (uint32) DefaultNumberUp (readonly)
ジョブに指定が去れていない場合に、プリンタが単一のメディア シートに送る印刷 - ストリームの最大部数です。
218 219 220 |
# File 'lib/CIM_Printer.rb', line 218 def DefaultNumberUp @DefaultNumberUp end |
- (string) DefaultPaperType (readonly)
印刷ジョブが特定の種類を指定しない場合は、プリンタが使用する用紙の種類を指定します。
225 226 227 |
# File 'lib/CIM_Printer.rb', line 225 def DefaultPaperType @DefaultPaperType end |
- (string) Description (readonly)
Description プロパティでオブジェクトの説明が提供されます。
231 232 233 |
# File 'lib/CIM_Printer.rb', line 231 def Description @Description end |
- (uint16) DetectedErrorState (readonly)
プリンタ エラー情報です。
236 237 238 |
# File 'lib/CIM_Printer.rb', line 236 def DetectedErrorState @DetectedErrorState end |
- (string) DeviceID (readonly)
DeviceID は論理デバイスを一意に名前付けするためのアドレス、またはほかの識別情報です。
241 242 243 |
# File 'lib/CIM_Printer.rb', line 241 def DeviceID @DeviceID end |
- (boolean) ErrorCleared (readonly)
ErrorCleared は LastErrorCode プロパティで報告されたエラーが現在は消去されていることを示すブール値のプロパティです。
246 247 248 |
# File 'lib/CIM_Printer.rb', line 246 def ErrorCleared @ErrorCleared end |
- (string) ErrorDescription (readonly)
ErrorDescription は LastErrorCode プロパティで記録されたエラーに関する情報および実行される可能性がある修正の情報を提供する自由形式の文字列です。
251 252 253 |
# File 'lib/CIM_Printer.rb', line 251 def ErrorDescription @ErrorDescription end |
- (string) ErrorInformation
現在のエラー状態の補足情報を提供しているDetectedErrorState で示されている配列です。
256 257 258 |
# File 'lib/CIM_Printer.rb', line 256 def ErrorInformation @ErrorInformation end |
- (uint32) HorizontalResolution (readonly)
プリンタの水平方向の解像度 (ピクセル/インチ) です。
261 262 263 |
# File 'lib/CIM_Printer.rb', line 261 def HorizontalResolution @HorizontalResolution end |
- (datetime) InstallDate (readonly)
InstallDate プロパティは、オブジェクトがインストールされた日時を示す値です。
267 268 269 |
# File 'lib/CIM_Printer.rb', line 267 def InstallDate @InstallDate end |
- (uint32) JobCountSinceLastReset (readonly)
前回のリセット後に処理された印刷ジョブです。
273 274 275 |
# File 'lib/CIM_Printer.rb', line 273 def JobCountSinceLastReset @JobCountSinceLastReset end |
- (uint16) LanguagesSupported (readonly)
サポートされている印刷言語を示す配列です。
278 279 280 |
# File 'lib/CIM_Printer.rb', line 278 def LanguagesSupported @LanguagesSupported end |
- (uint32) LastErrorCode (readonly)
論理デバイスで報告されたエラー コードが LastErrorCode によってキャプチャされます。
283 284 285 |
# File 'lib/CIM_Printer.rb', line 283 def LastErrorCode @LastErrorCode end |
- (uint16) MarkingTechnology (readonly)
プリンタで使用されているマークされているテクノロジです。
288 289 290 |
# File 'lib/CIM_Printer.rb', line 288 def MarkingTechnology @MarkingTechnology end |
- (uint32) MaxCopies (readonly)
単一のジョブでプリンタから印刷できる最大部数です。
293 294 295 |
# File 'lib/CIM_Printer.rb', line 293 def MaxCopies @MaxCopies end |
- (uint32) MaxNumberUp (readonly)
プリンタが単一のメディア シートに送ることのできる印刷 - ストリームの最大部数です。
298 299 300 |
# File 'lib/CIM_Printer.rb', line 298 def MaxNumberUp @MaxNumberUp end |
- (uint32) MaxSizeSupported (readonly)
プリンタが KB の単位で受け入れる最大ジョブ (バイト ストリームとしての)を指定します。
304 305 306 |
# File 'lib/CIM_Printer.rb', line 304 def MaxSizeSupported @MaxSizeSupported end |
- (string) MimeTypesSupported (readonly)
プリンタにサポートされている MIME の種類の詳細な情報を提供する自由形式の文字列の配列です。
310 311 312 |
# File 'lib/CIM_Printer.rb', line 310 def MimeTypesSupported @MimeTypesSupported end |
- (string) Name (readonly)
Name プロパティで、オブジェクトを認識するラベルを定義します。
316 317 318 |
# File 'lib/CIM_Printer.rb', line 316 def Name @Name end |
- (string) NaturalLanguagesSupported (readonly)
管理情報の出力用のプリンタに使用されている文字列に利用可能な言語を示します。
323 324 325 |
# File 'lib/CIM_Printer.rb', line 323 def NaturalLanguagesSupported @NaturalLanguagesSupported end |
- (uint16) PaperSizesSupported (readonly)
用紙の種類を示す整数の配列です。
328 329 330 |
# File 'lib/CIM_Printer.rb', line 328 def PaperSizesSupported @PaperSizesSupported end |
- (string) PaperTypesAvailable (readonly)
プリンタで現在利用可能な用紙の種類を指定する自由形式の文字列の配列です。
336 337 338 |
# File 'lib/CIM_Printer.rb', line 336 def PaperTypesAvailable @PaperTypesAvailable end |
- (string) PNPDeviceID (readonly)
論理デバイスの Win32 プラグ アンド プレイ デバイス ID を示します。
342 343 344 |
# File 'lib/CIM_Printer.rb', line 342 def PNPDeviceID @PNPDeviceID end |
- (uint16) PowerManagementCapabilities (readonly)
論理デバイスの特定の電源関連機能を示します。
0="不明"
353 354 355 |
# File 'lib/CIM_Printer.rb', line 353 def PowerManagementCapabilities @PowerManagementCapabilities end |
- (boolean) PowerManagementSupported (readonly)
デバイスを電源管理できることを示すブール値です - 例、省電力状態にする。
361 362 363 |
# File 'lib/CIM_Printer.rb', line 361 def PowerManagementSupported @PowerManagementSupported end |
- (uint16) PrinterStatus (readonly)
論理デバイスの Availability プロパティで指定されたプリンタの状態よりも詳細な情報です。
367 368 369 |
# File 'lib/CIM_Printer.rb', line 367 def PrinterStatus @PrinterStatus end |
- (string) Status (readonly)
Status プロパティはオブジェクトの現在の状態を示す文字列です。
380 381 382 |
# File 'lib/CIM_Printer.rb', line 380 def Status @Status end |
- (uint16) StatusInfo (readonly)
StatusInfo は、論理デバイスが有効 (値 = 3)、無効 (値 = 4) またはその他 (1) または不明 (2) 状態であるかどうかを示す文字列です。
386 387 388 |
# File 'lib/CIM_Printer.rb', line 386 def StatusInfo @StatusInfo end |
- (string) SystemCreationClassName (readonly)
スコーピング システムの CreationClassName です。
392 393 394 |
# File 'lib/CIM_Printer.rb', line 392 def SystemCreationClassName @SystemCreationClassName end |
- (string) SystemName (readonly)
スコーピング システムの名前です。
397 398 399 |
# File 'lib/CIM_Printer.rb', line 397 def SystemName @SystemName end |
- (datetime) TimeOfLastReset (readonly)
プリンタ デバイスの前回のリセットの時刻です。
402 403 404 |
# File 'lib/CIM_Printer.rb', line 402 def TimeOfLastReset @TimeOfLastReset end |
- (uint32) VerticalResolution (readonly)
プリンタの垂直方向の解像度 (ピクセル/インチ) です。
407 408 409 |
# File 'lib/CIM_Printer.rb', line 407 def VerticalResolution @VerticalResolution end |
Instance Method Details
- (uint32) Reset
論理デバイスのリセットを要求します。 要求が正常に実行された場合、返される値は 0 で、要求がサポートされない場合は 1 です。 また、エラーが発生した場合は、ほかの値となります。
25 26 |
# File 'lib/CIM_Printer.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/CIM_Printer.rb', line 17 def SetPowerState PowerState, Time end |