WebControlToolboxItem.GetToolAttributeValue(IDesignerHost, Type) 方法

定義

取得指定的工具箱項目屬性值型別。

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

要擷取值的屬性型別。

傳回

Object

指定的屬性值型別。

例外狀況

attributeType 參數不是 PersistChildrenAttribute

備註

ArgumentException如果參數是以外的任何值,則預設的執行將會擲回 attributeType PersistChildrenAttribute

適用於

另請參閱