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ではありません。

注釈

既定の実装では、attributeType パラメーターがPersistChildrenAttribute以外の場合、ArgumentExceptionがスローされます。

適用対象

こちらもご覧ください