Class: WMI::Win32_PrintJob
Overview
Win32_PrintJob クラスは、Win32 アプリケーションによって生成される印刷ジョブを表します。Win32 システムで実行するアプリケーションの Print コマンドによって生成される動作のユニットは、このクラスの子孫 (またはメンバ) です。 例: Office 97 アプリケーションによって作成された印刷ドキュメントです。
Instance Attribute Summary (collapse)
-
- (string) Caption
readonly
Caption プロパティは、オブジェクトについての簡単な説明 (1 行分の文字列) です。.
-
- (string) DataType
readonly
DataType プロパティは、この印刷ジョブのデータ形式を示します。.
-
- (string) Description
readonly
Description プロパティでオブジェクトの説明が提供されます。.
-
- (string) Document
readonly
Document プロパティにより、印刷ジョブ名が指定されます。.
-
- (string) DriverName
readonly
DriverName プロパティは、印刷ジョブで使用されるプリンタ ドライバの名前を示します。.
-
- (datetime) ElapsedTime
readonly
ジョブが実行されている時間の長さです。.
-
- (string) HostPrintQueue
readonly
HostPrintQueue プロパティには、印刷ジョブが作成されたコンピュータの名前が含まれています。.
-
- (datetime) InstallDate
readonly
InstallDate プロパティは、オブジェクトがインストールされた日時を示す値です。.
-
- (uint32) JobId
readonly
JobId プロパティは、ジョブの識別子番号を表します。.
-
- (string) JobStatus
readonly
ジョブの状態を表す自由形式の文字列です。.
-
- (string) Name
readonly
Name プロパティには、印刷ジョブがスプールされているプリンタの名前が含まれています。.
-
- (string) Notify
readonly
ジョブの完了またはエラーが通知されるユーザーです。.
-
- (string) Owner
readonly
ジョブを送信したユーザーです。.
-
- (uint32) PagesPrinted
readonly
PagesPrinted プロパティにより、印刷されたページ数が指定されます。.
-
- (string) Parameters
readonly
Parameters プロパティは、プリント プロセッサに送信されるオプションのパラメータを示します。.
-
- (string) PrintProcessor
readonly
PrintProcessor プロパティは、印刷ジョブを処理するのに使用されるプリント プロセッサ サービスを示します。.
-
- (uint32) Priority
readonly
優先順位は、ジョブ実行の緊急性または重要性を示します。.
-
- (uint32) Size
readonly
Size プロパティは印刷ジョブのサイズを示します。.
-
- (datetime) StartTime
readonly
ジョブを開始した時間です。.
-
- (string) Status
readonly
Status プロパティはオブジェクトの現在の状態を示す文字列です。.
-
- (uint32) StatusMask
readonly
StatusMask プロパティにより、この印刷ジョブに関連する予想される状態のビットマップが指定されます。.
-
- (datetime) TimeSubmitted
readonly
ジョブを送信した時刻です。.
-
- (uint32) TotalPages
readonly
TotalPages プロパティにより、ジョブの完了に必要なページ数が指定されます。.
-
- (datetime) UntilTime
readonly
ジョブが無効または停止する時刻です。.
Instance Method Summary (collapse)
-
- (uint32) Pause
Pause メソッドにより、印刷キューのジョブが一時停止されます。 現在ジョブが印刷中の場合、ほかのジョブは印刷されません。 ジョブがまだ印刷されていなかった場合は、一時停止されていない別の印刷ジョブが印刷を開始する可能性があります。 メソッドは次の値を返すことができます: 0 - 成功です。.
-
- (uint32) Resume
Resume メソッドにより、一時停止された印刷ジョブが続行されます。 メソッドは次の値を返すことができます: 0 - 成功です。.
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) Caption (readonly)
Caption プロパティは、オブジェクトについての簡単な説明 (1 行分の文字列) です。
34 35 36 |
# File 'lib/Win32_PrintJob.rb', line 34 def Caption @Caption end |
- (string) DataType (readonly)
DataType プロパティは、この印刷ジョブのデータ形式を示します。
42 43 44 |
# File 'lib/Win32_PrintJob.rb', line 42 def DataType @DataType end |
- (string) Description (readonly)
Description プロパティでオブジェクトの説明が提供されます。
48 49 50 |
# File 'lib/Win32_PrintJob.rb', line 48 def Description @Description end |
- (string) Document (readonly)
Document プロパティにより、印刷ジョブ名が指定されます。
56 57 58 |
# File 'lib/Win32_PrintJob.rb', line 56 def Document @Document end |
- (string) DriverName (readonly)
DriverName プロパティは、印刷ジョブで使用されるプリンタ ドライバの名前を示します。
61 62 63 |
# File 'lib/Win32_PrintJob.rb', line 61 def DriverName @DriverName end |
- (datetime) ElapsedTime (readonly)
ジョブが実行されている時間の長さです。
66 67 68 |
# File 'lib/Win32_PrintJob.rb', line 66 def ElapsedTime @ElapsedTime end |
- (string) HostPrintQueue (readonly)
HostPrintQueue プロパティには、印刷ジョブが作成されたコンピュータの名前が含まれています。
71 72 73 |
# File 'lib/Win32_PrintJob.rb', line 71 def HostPrintQueue @HostPrintQueue end |
- (datetime) InstallDate (readonly)
InstallDate プロパティは、オブジェクトがインストールされた日時を示す値です。
77 78 79 |
# File 'lib/Win32_PrintJob.rb', line 77 def InstallDate @InstallDate end |
- (uint32) JobId (readonly)
JobId プロパティは、ジョブの識別子番号を表します。
83 84 85 |
# File 'lib/Win32_PrintJob.rb', line 83 def JobId @JobId end |
- (string) JobStatus (readonly)
ジョブの状態を表す自由形式の文字列です。
88 89 90 |
# File 'lib/Win32_PrintJob.rb', line 88 def JobStatus @JobStatus end |
- (string) Name (readonly)
Name プロパティには、印刷ジョブがスプールされているプリンタの名前が含まれています。
93 94 95 |
# File 'lib/Win32_PrintJob.rb', line 93 def Name @Name end |
- (string) Notify (readonly)
ジョブの完了またはエラーが通知されるユーザーです。
99 100 101 |
# File 'lib/Win32_PrintJob.rb', line 99 def Notify @Notify end |
- (string) Owner (readonly)
ジョブを送信したユーザーです。
104 105 106 |
# File 'lib/Win32_PrintJob.rb', line 104 def Owner @Owner end |
- (uint32) PagesPrinted (readonly)
PagesPrinted プロパティにより、印刷されたページ数が指定されます。
110 111 112 |
# File 'lib/Win32_PrintJob.rb', line 110 def PagesPrinted @PagesPrinted end |
- (string) Parameters (readonly)
Parameters プロパティは、プリント プロセッサに送信されるオプションのパラメータを示します。
116 117 118 |
# File 'lib/Win32_PrintJob.rb', line 116 def Parameters @Parameters end |
- (string) PrintProcessor (readonly)
PrintProcessor プロパティは、印刷ジョブを処理するのに使用されるプリント プロセッサ サービスを示します。
122 123 124 |
# File 'lib/Win32_PrintJob.rb', line 122 def PrintProcessor @PrintProcessor end |
- (uint32) Priority (readonly)
優先順位は、ジョブ実行の緊急性または重要性を示します。
127 128 129 |
# File 'lib/Win32_PrintJob.rb', line 127 def Priority @Priority end |
- (uint32) Size (readonly)
Size プロパティは印刷ジョブのサイズを示します。
132 133 134 |
# File 'lib/Win32_PrintJob.rb', line 132 def Size @Size end |
- (datetime) StartTime (readonly)
ジョブを開始した時間です。
137 138 139 |
# File 'lib/Win32_PrintJob.rb', line 137 def StartTime @StartTime end |
- (string) Status (readonly)
Status プロパティはオブジェクトの現在の状態を示す文字列です。
150 151 152 |
# File 'lib/Win32_PrintJob.rb', line 150 def Status @Status end |
- (uint32) StatusMask (readonly)
StatusMask プロパティにより、この印刷ジョブに関連する予想される状態のビットマップが指定されます。
155 156 157 |
# File 'lib/Win32_PrintJob.rb', line 155 def StatusMask @StatusMask end |
- (datetime) TimeSubmitted (readonly)
ジョブを送信した時刻です。
160 161 162 |
# File 'lib/Win32_PrintJob.rb', line 160 def TimeSubmitted @TimeSubmitted end |
- (uint32) TotalPages (readonly)
TotalPages プロパティにより、ジョブの完了に必要なページ数が指定されます。
166 167 168 |
# File 'lib/Win32_PrintJob.rb', line 166 def TotalPages @TotalPages end |
- (datetime) UntilTime (readonly)
ジョブが無効または停止する時刻です。
171 172 173 |
# File 'lib/Win32_PrintJob.rb', line 171 def UntilTime @UntilTime end |
Instance Method Details
- (uint32) Pause
Pause メソッドにより、印刷キューのジョブが一時停止されます。 現在ジョブが印刷中の場合、ほかのジョブは印刷されません。 ジョブがまだ印刷されていなかった場合は、一時停止されていない別の印刷ジョブが印刷を開始する可能性があります。 メソッドは次の値を返すことができます: 0 - 成功です。
5 - アクセスが拒否されました。
その他 - 上の一覧以外の整数値については Win32 エラー コードのドキュメントを参照してください。
16 17 |
# File 'lib/Win32_PrintJob.rb', line 16 def Pause end |
- (uint32) Resume
Resume メソッドにより、一時停止された印刷ジョブが続行されます。 メソッドは次の値を返すことができます: 0 - 成功です。
5 - アクセスが拒否されました。
その他 - 上の一覧以外の整数値については Win32 エラー コードのドキュメントを参照してください。
28 29 |
# File 'lib/Win32_PrintJob.rb', line 28 def Resume end |