共用方式為


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

取得樣板容器 (Container) 的資料項目屬性。

public:
 virtual System::String ^ GetTemplateContainerDataItemProperty(System::String ^ templateName);
public virtual string GetTemplateContainerDataItemProperty (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 string GetTemplateContainerDataItemProperty (string templateName);
abstract member GetTemplateContainerDataItemProperty : string -> string
override this.GetTemplateContainerDataItemProperty : string -> string
[<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 GetTemplateContainerDataItemProperty : string -> string
override this.GetTemplateContainerDataItemProperty : string -> string
Public Overridable Function GetTemplateContainerDataItemProperty (templateName As String) As String

參數

templateName
String

範本名稱。

傳回

表示資料的字串。

屬性

備註

注意

方法 GetTemplateContainerDataItemProperty 已過時。 Templates使用集合元素的 TemplateGroups 屬性,檢查設計工具內範本型控件的範本元數據。

適用於

另請參閱