Muokkaa

Jaa


InstrumentedAttribute.NamespaceName Property

Definition

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

public:
 property System::String ^ NamespaceName { System::String ^ get(); };
public string NamespaceName { get; }
member this.NamespaceName : string
Public ReadOnly Property NamespaceName As String

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