TemplatedControlDesigner.GetTemplatePropertyParentType(String) Método

Definición

Precaución

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

Obtiene el tipo del elemento principal de la propiedad de la plantilla.

C#
public virtual Type GetTemplatePropertyParentType(string templateName);
C#
[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);

Parámetros

templateName
String

Nombre de la plantilla para la que se va a devolver el tipo del elemento principal.

Devoluciones

Tipo del objeto que tiene la propiedad de la plantilla.

Atributos

Comentarios

Nota

El GetTemplatePropertyParentType método está obsoleto. Utilice la Templates propiedad de los elementos de la TemplateGroups colección para examinar los metadatos de plantilla dentro de un diseñador para los controles basados en plantillas.

Se aplica a

Produto Versións (Obsoleto)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)

Consulte también