InstrumentedAttribute.NamespaceName Property

Definition

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

public string NamespaceName { get; }

Property Value

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

Remarks

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.

Property Value

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.

.NET Framework Security

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.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1