Compartir a través de


WebControlToolboxItem.GetToolAttributeValue(IDesignerHost, Type) Método

Definición

Obtiene el valor del tipo de atributo especificado del elemento del cuadro de herramientas.

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

Parámetros

host
IDesignerHost

IDesignerHost para el documento de diseño actual.

attributeType
Type

Tipo de atributo cuyo valor se va a recuperar.

Devoluciones

Object

Valor del tipo de atributo especificado.

Excepciones

El parámetro attributeType no es un atributo PersistChildrenAttribute.

Comentarios

La implementación predeterminada produce una ArgumentException excepción si attributeType el parámetro es distinto de PersistChildrenAttribute .

Se aplica a

Consulte también