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

适用于

另请参阅