TagPrefixInfo.TagName 属性

定义

获取或设置用户控件的名称。Gets or sets the name of the user control.

public:
 property System::String ^ TagName { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("tagName")]
public string TagName { get; set; }
[<System.Configuration.ConfigurationProperty("tagName")>]
member this.TagName : string with get, set
Public Property TagName As String

属性值

String

用户控件的名称。The name of the user control.

属性

示例

下面的代码示例说明如何使用 TagName 属性。The following code example shows how to use the TagName property. 此代码示例是为类提供的更大示例的一部分 PagesSectionThis code example is part of a larger example provided for the PagesSection class.

注解

此属性指定控件的名称。This property specifies the name of the control. 它仅适用于用户控件。It applies only to user controls. 这是 ASP.NET 代码中的标记前缀后面的值。This is the value that would follow the tag prefix in the ASP.NET code. 例如,中的 "Mycontrol.xaml" <myTag: myControl />For example, "myControl" in <myTag: myControl />.

适用于

另请参阅