WebControlToolboxItem.GetToolAttributeValue(IDesignerHost, Type) Metodo

Definizione

Ottiene il valore del tipo di attributo specificato dell'elemento della casella degli strumenti.

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

Parametri

host
IDesignerHost

Oggetto IDesignerHost per il documento di progettazione corrente.

attributeType
Type

Tipo di attributo di cui recuperare il valore.

Valori restituiti

Valore del tipo di attributo specificato.

Eccezioni

Il attributeType parametro non è un oggetto PersistChildrenAttribute.

Commenti

L'implementazione predefinita genererà un'eccezione ArgumentException se il attributeType parametro è diverso da .PersistChildrenAttribute

Si applica a

Vedi anche