語言

EditorPartCollection.Empty 欄位

定義

參考一個靜態、唯讀、空的集合實例。

public: static initonly System::Web::UI::WebControls::WebParts::EditorPartCollection ^ Empty;
public static readonly System.Web.UI.WebControls.WebParts.EditorPartCollection Empty;
 staticval mutable Empty : System.Web.UI.WebControls.WebParts.EditorPartCollection
Public Shared ReadOnly Empty As EditorPartCollection 

欄位值

備註

靜態、唯讀、空實例 EditorPartCollection 能減少記憶體使用,特別是當你希望空集合實例能從某個方法回傳正確的物件類型,或是要將實例與其他物件比較時,但你不需要為實例新增成員。

適用於

另請參閱