PrintJobInfoCollection 類別

定義

表示一個或多個 PrintSystemJobInfo 物件。Represents one or more PrintSystemJobInfo objects.

public ref class PrintJobInfoCollection : System::Printing::PrintSystemObjects, IDisposable, System::Collections::Generic::IEnumerable<System::Printing::PrintSystemJobInfo ^>
public class PrintJobInfoCollection : System.Printing.PrintSystemObjects, IDisposable, System.Collections.Generic.IEnumerable<System.Printing.PrintSystemJobInfo>
type PrintJobInfoCollection = class
    inherit PrintSystemObjects
    interface seq<PrintSystemJobInfo>
    interface IEnumerable
    interface IDisposable
Public Class PrintJobInfoCollection
Inherits PrintSystemObjects
Implements IDisposable, IEnumerable(Of PrintSystemJobInfo)
繼承
PrintJobInfoCollection
實作

備註

警告

在 Windows 服務System.Printing或 ASP.NET 應用程式或服務中不支援使用命名空間中的類別。Classes within the System.Printing namespace are not supported for use within a Windows service or ASP.NET application or service. 嘗試在其中一個應用程式類型中使用這些類別可能會產生非預期的問題,例如服務效能和執行時間例外狀況降低。Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions.

如果您想要從 Windows Forms 應用程式進行列印,請System.Drawing.Printing參閱命名空間。If you want to print from a Windows Forms application, see the System.Drawing.Printing namespace.

建構函式

PrintJobInfoCollection(PrintQueue, String[])

初始化 PrintJobInfoCollection 類別的新執行個體,這個類別包含在指定之 PrintSystemJobInfo 中每個工作的 PrintQueue 物件,且只會初始化特定屬性篩選條件中列出之屬性內的物件。Initializes a new instance of the PrintJobInfoCollection class that contains the PrintSystemJobInfo objects for every job that is in the specified PrintQueue and that initializes those objects only in the properties that are listed in the specified property filter.

方法

Add(PrintSystemJobInfo)

將成員加入至 PrintJobInfoCollectionAdds a member to the PrintJobInfoCollection.

Dispose()

釋放 PrintSystemObjects 所使用的所有資源。Releases all resources used by the PrintSystemObjects.

(繼承來源 PrintSystemObjects)
Dispose(Boolean)

釋放 PrintJobInfoCollection 正在使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources that are being used by the PrintJobInfoCollection and optionally releases the managed resources.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetEnumerator()

取得實作泛型 IEnumerator、使用 PrintSystemJobInfo 關閉之介面的物件。Gets an object that implements the generic IEnumerator interface that is closed with PrintSystemJobInfo.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetNonGenericEnumerator()

取得實作非泛型 IEnumerator 介面的物件。Gets an object that implements the non-generic IEnumerator interface.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

IEnumerable.GetEnumerator()

取得實作泛型 IEnumerator、使用 PrintSystemJobInfo 關閉之介面的物件。Gets an object that implements the generic IEnumerator interface that is closed with PrintSystemJobInfo.

擴充方法

CopyToDataTable<T>(IEnumerable<T>)

根據輸入 DataTable 物件 (其中泛型參數 TDataRow) 傳回包含 IEnumerable<T> 物件複本的 DataRowReturns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 IEnumerable<T> 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 IEnumerable<T> 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>)

傳回包含來源集合中每個節點祖系的項目集合。Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName)

傳回包含來源集合中每個節點祖系的已篩選項目集合。Returns a filtered collection of elements that contains the ancestors of every node in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>)

傳回來源集合中每個文件和項目之子代節點的集合。Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>)

傳回包含來源集合中每個項目和文件之子代項目的項目集合。Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName)

傳回已篩選的項目集合,其中包含來源集合中每個項目和文件的子代項目。Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>)

傳回來源集合中每個項目和文件的子項目集合。Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName)

傳回來源集合中每個項目和文件的已篩選子項目集合。Returns a filtered collection of the child elements of every element and document in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>)

傳回包含來源集合中所有節點的節點集合,依據文件順序來排序。Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>)

傳回來源集合中每個文件和項目的子節點集合。Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>)

在來源集合中,從每一個節點的父節點移除這些節點。Removes every node in the source collection from its parent node.

適用於