WebControlToolboxItem.GetToolAttributeValue(IDesignerHost, Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得工具箱物品指定屬性類型的值。
public:
System::Object ^ GetToolAttributeValue(System::ComponentModel::Design::IDesignerHost ^ host, Type ^ attributeType);
public object GetToolAttributeValue(System.ComponentModel.Design.IDesignerHost host, Type attributeType);
member this.GetToolAttributeValue : System.ComponentModel.Design.IDesignerHost * Type -> obj
Public Function GetToolAttributeValue (host As IDesignerHost, attributeType As Type) As Object
參數
- host
- IDesignerHost
IDesignerHost這是目前的設計文件。
- attributeType
- Type
要取得的屬性類型。
傳回
指定屬性類型的值。
例外狀況
參數 attributeType 不是 PersistChildrenAttribute。
備註
預設實作若ArgumentExceptionattributeType參數非 PersistChildrenAttribute。