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.

注解

如果ArgumentException参数不是任何参数,则默认实现将引发 attributeTypePersistChildrenAttribute

适用于

另请参阅