Επεξεργασία

Κοινή χρήση μέσω


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.

public:
 InstrumentedAttribute();
public InstrumentedAttribute ();
Public Sub New ()

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

InstrumentedAttribute(String)

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

public:
 InstrumentedAttribute(System::String ^ namespaceName);
public InstrumentedAttribute (string namespaceName);
new System.Management.Instrumentation.InstrumentedAttribute : string -> System.Management.Instrumentation.InstrumentedAttribute
Public Sub New (namespaceName As String)

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

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.

public:
 InstrumentedAttribute(System::String ^ namespaceName, System::String ^ securityDescriptor);
public InstrumentedAttribute (string namespaceName, string securityDescriptor);
new System.Management.Instrumentation.InstrumentedAttribute : string * string -> System.Management.Instrumentation.InstrumentedAttribute
Public Sub New (namespaceName As String, securityDescriptor As String)

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