TemplatedControlDesigner.GetTemplateContainerDataItemProperty(String) Method

Definition

Caution

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

Gets the data item property of the template's container.

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

Parameters

templateName
String

The name of the template.

Returns

A string representing the data.

Attributes

Remarks

Напомена

The GetTemplateContainerDataItemProperty method is obsolete. Use the Templates property of the TemplateGroups collection elements to examine template metadata within a designer for template-based controls.

Applies to

Производ Верзије (Застарело)
.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)

See also