語言

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

要取得的屬性類型。

傳回

指定屬性類型的值。

例外狀況

參數 attributeType 不是 PersistChildrenAttribute。

備註

預設實作若ArgumentExceptionattributeType參數非 PersistChildrenAttribute。

適用於

另請參閱