TemplatedControlDesigner.GetTemplateContainerDataItemProperty(String) 方法

定义

注意

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

获取模板容器的数据项属性。

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);

参数

templateName
String

模板的名称。

返回

表示数据的字符串。

属性

注解

备注

方法 GetTemplateContainerDataItemProperty 已过时。 Templates使用集合元素的 TemplateGroups 属性在设计器中检查基于模板的控件的模板元数据。

适用于

产品 版本 (已过时)
.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)

另请参阅