DesignerOptionService.CreateOptionCollection 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 DesignerOptionService.DesignerOptionCollection 一個帶有名字的新帳號,並加到指定的父名稱中。
protected:
System::ComponentModel::Design::DesignerOptionService::DesignerOptionCollection ^ CreateOptionCollection(System::ComponentModel::Design::DesignerOptionService::DesignerOptionCollection ^ parent, System::String ^ name, System::Object ^ value);
protected System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection CreateOptionCollection(System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection parent, string name, object value);
member this.CreateOptionCollection : System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection * string * obj -> System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection
Protected Function CreateOptionCollection (parent As DesignerOptionService.DesignerOptionCollection, name As String, value As Object) As DesignerOptionService.DesignerOptionCollection
參數
家長設計師選項系列。 除了根物件集合外,所有集合都有父集合。
- name
- String
這個收藏的名稱。
- value
- Object
提供此集合屬性的物件。 如果收藏本身不應該提供任何屬性,那就有可能。null
傳回
一個新來 DesignerOptionService.DesignerOptionCollection 的,名字也一樣。
例外狀況
parent 或 name 為 null。
name 是空字串。
備註
參數指定 value 一個物件,其公開屬性被用於 Properties 選項集合的集合中。
value參數可以是 如果null這個期權集合沒有提供任何屬性。 屬性會以一種方式包裝,使得將任何進入 的 PropertyDescriptor 元件參數都忽略,並 value 以物件替換。