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.
注解
如果ArgumentException参数不是任何参数,则默认实现将引发 attributeType 。PersistChildrenAttribute