CompletionSet(ImageList, Source) 建構函式

定義

初始化 CompletionSet 類別的新執行個體。Initializes a new instance of the CompletionSet class.

public:
 CompletionSet(System::Windows::Forms::ImageList ^ imageList, Microsoft::VisualStudio::Package::Source ^ source);
public CompletionSet (System.Windows.Forms.ImageList imageList, Microsoft.VisualStudio.Package.Source source);
new Microsoft.VisualStudio.Package.CompletionSet : System.Windows.Forms.ImageList * Microsoft.VisualStudio.Package.Source -> Microsoft.VisualStudio.Package.CompletionSet
Public Sub New (imageList As ImageList, source As Source)

參數

imageList
ImageList

ImageList 物件,包含要在完成清單顯示中使用的影像。[in] An ImageList object containing the images to be used in the completion list display. 不可為 nullThis cannot be null. 不過,它可以是空的清單。It can however, be an empty list..

source
Source

Source 物件,代表要由完成清單影響的原始程式檔。[in] A Source object representing the source file to be affected by the completion list. 不可為 nullThis cannot be null.

備註

如果您必須從類別衍生類別 CompletionSet ,您必須呼叫基類的函式。If you must derive a class from the CompletionSet class, you must call the base class constructor.

基底的函式會快取影像清單和 Source 物件。The base constructor caches the image list and Source object.

適用於