This documentation is archived and is not being maintained.

WebControlToolboxItem.GetToolAttributeValue Method

Gets the value of the specified type of attribute of the toolbox item.

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

Parameters

host
The IDesignerHost for the current design document.
attributeType
The type of attribute to retrieve the value of.

Return Value

The value of the specified type of attribute.

Exceptions

Exception Type Condition
ArgumentException The attributeType parameter is not a PersistChildrenAttribute.

Remarks

The default implementation will throw an ArgumentException if the attributeType parameter is anything other than a PersistChildrenAttribute.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

WebControlToolboxItem Class | WebControlToolboxItem Members | System.Web.UI.Design Namespace

Show: