InstrumentedAttribute Constructors

Definition

Initializes a new instance of the InstrumentedAttribute class.

Overloads

InstrumentedAttribute()

Initializes a new instance of the InstrumentedAttribute class that is set for the root\default namespace. This is the parameterless constructor.

InstrumentedAttribute(String)

Initializes a new instance of the InstrumentedAttribute class that is set to the specified namespace for instrumentation within this assembly.

InstrumentedAttribute(String, String)

Initializes a new instance of the InstrumentedAttribute class that is set to the specified namespace and security settings for instrumentation within this assembly.

InstrumentedAttribute()

Initializes a new instance of the InstrumentedAttribute class that is set for the root\default namespace. This is the parameterless constructor.

C#
public InstrumentedAttribute();

Remarks

.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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.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

InstrumentedAttribute(String)

Initializes a new instance of the InstrumentedAttribute class that is set to the specified namespace for instrumentation within this assembly.

C#
public InstrumentedAttribute(string namespaceName);

Parameters

namespaceName
String

The namespace for instrumentation instances and events.

Remarks

.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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.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

InstrumentedAttribute(String, String)

Initializes a new instance of the InstrumentedAttribute class that is set to the specified namespace and security settings for instrumentation within this assembly.

C#
public InstrumentedAttribute(string namespaceName, string securityDescriptor);

Parameters

namespaceName
String

The namespace for instrumentation instances and events.

securityDescriptor
String

A security descriptor that allows only the specified users or groups to run applications that provide the instrumentation supported by this assembly.

Remarks

.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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.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