Partager via


TemplatedControlDesigner.GetTemplatePropertyParentType(String) Méthode

Définition

Attention

Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202

Obtient le type du parent de la propriété du modèle.

public:
 virtual Type ^ GetTemplatePropertyParentType(System::String ^ templateName);
public virtual Type GetTemplatePropertyParentType (string templateName);
[System.Obsolete("Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")]
public virtual Type GetTemplatePropertyParentType (string templateName);
abstract member GetTemplatePropertyParentType : string -> Type
override this.GetTemplatePropertyParentType : string -> Type
[<System.Obsolete("Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member GetTemplatePropertyParentType : string -> Type
override this.GetTemplatePropertyParentType : string -> Type
Public Overridable Function GetTemplatePropertyParentType (templateName As String) As Type

Paramètres

templateName
String

Nom du modèle pour lequel le type du parent doit être retourné.

Retours

Type

Type de l'objet qui possède la propriété du modèle.

Attributs

Remarques

Notes

La GetTemplatePropertyParentType méthode est obsolète. Utilisez la Templates propriété des éléments de collection pour examiner les métadonnées de TemplateGroups modèle dans un concepteur pour les contrôles basés sur un modèle.

S’applique à

Voir aussi