Chỉnh sửa

RootNamespaceAttribute Class

Definition

Represents an assembly level attribute that is used to identify the value of the RootNamespace property in a Visual Studio project file.

public ref class RootNamespaceAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly)]
public sealed class RootNamespaceAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly)>]
type RootNamespaceAttribute = class
    inherit Attribute
Public NotInheritable Class RootNamespaceAttribute
Inherits Attribute
Inheritance
RootNamespaceAttribute
Attributes

Remarks

This attribute is mainly relevant for type resolutions of partial classes by markup compilers.

In previous versions of the .NET Framework, this class existed in the WPF-specific assembly WindowsBase. In .NET Framework 4, RootNamespaceAttribute is in the System.Xaml assembly. For more information, see Types Migrated from WPF to System.Xaml.

Constructors

Name Description
RootNamespaceAttribute(String)

Initializes a new instance of the RootNamespaceAttribute class.

Properties

Name Description
Namespace

Gets the string that corresponds to the value of the RootNamespace property in a Visual Studio project file.

Applies to

See also