TemplatedControlDesigner.GetTemplatePropertyParentType(String) Methode

Definition

Achtung

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

Ruft den Typ des übergeordneten Elements der Vorlageneigenschaft ab.

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

Parameter

templateName
String

Der Name der Vorlage, für die der Typ des übergeordneten Elements zurückgegeben werden soll.

Gibt zurück

Type

Der Typ des Objekts mit der Vorlageneigenschaft.

Attribute

Hinweise

Hinweis

Die GetTemplatePropertyParentType Methode ist veraltet. Verwenden Sie die Templates Eigenschaft der TemplateGroups Auflistungselemente, um Vorlagenmetadaten innerhalb eines Designers für vorlagenbasierte Steuerelemente zu untersuchen.

Gilt für

Siehe auch