InstrumentedAttribute::NamespaceName Property

 

Gets or sets the namespace for instrumentation instances and events in this assembly.

Namespace:   System.Management.Instrumentation
Assembly:  System.Management (in System.Management.dll)

public:
property String^ NamespaceName {
	String^ get();
}

Property Value

Type: System::String^

Returns a String value containing the name of the namespace for instrumentation instances and events in this assembly.

It is highly recommended that the namespace name be specified by the assembly, and that it should be a unique namespace per assembly, or per application. Having a specific namespace for each assembly or application instrumentation allows more granularity for securing access to instrumentation provided by different assemblies or applications.

If not specified, the default namespace will be set as "\\.\root\default". Otherwise, a string indicating the name of the namespace for instrumentation instances and events in this assembly.

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

.NET Framework
Available since 1.1
Return to top
Show: