WebControlToolboxItem.GetToolAttributeValue(IDesignerHost, Type) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient la valeur du type d’attribut spécifié de l’élément de boîte à outils.
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
Paramètres
- host
- IDesignerHost
Pour IDesignerHost le document de conception actuel.
- attributeType
- Type
Type d’attribut à récupérer.
Retours
Valeur du type d’attribut spécifié.
Exceptions
Le attributeType paramètre n’est pas un PersistChildrenAttribute.
Remarques
L’implémentation par défaut lève un ArgumentException si le attributeType paramètre est autre chose qu’un PersistChildrenAttribute.