次の方法で共有


WebControlToolboxItem.GetToolAttributeValue メソッド

ツールボックス項目の指定した属性の型の値を取得します。

Public Function GetToolAttributeValue( _
   ByVal host As IDesignerHost, _   ByVal attributeType As Type _) As Object
[C#]
public object GetToolAttributeValue(IDesignerHosthost,TypeattributeType);
[C++]
public: Object* GetToolAttributeValue(IDesignerHost* host,Type* attributeType);
[JScript]
public function GetToolAttributeValue(
   host : IDesignerHost,attributeType : Type) : Object;

パラメータ

  • host
    現在のデザイン ドキュメントの IDesignerHost
  • attributeType
    値を取得する属性の型。

戻り値

指定した属性の型の値。

例外

例外の種類 条件
ArgumentException attributeType パラメータが、PersistChildrenAttribute ではありません。

解説

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

必要条件

プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

WebControlToolboxItem クラス | WebControlToolboxItem メンバ | System.Web.UI.Design 名前空間