TagPrefixInfo.Namespace 属性

定义

获取或设置控件所驻留的命名空间。Gets or sets the namespace in which the control resides.

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

属性值

String

命名空间的名称。The name of the namespace. 默认值为空字符串。The default is an empty string.

属性

示例

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

注解

此属性指定控件所在的命名空间。This property specifies the namespace in which the control resides. 它仅适用于自定义控件。It applies only to custom controls.

适用于

另请参阅