語言

InstrumentedAttribute 建構函式

定義

初始化 InstrumentedAttribute 類別的新執行個體。

多載

名稱 Description
InstrumentedAttribute()

初始化一個新的類別實例 InstrumentedAttribute ,該類別設定為根/預設命名空間。 這就是無參數建構子。

InstrumentedAttribute(String)

初始化一個新實例 InstrumentedAttribute ,該類別設定為指定命名空間,用於此組合體中的儀器化。

InstrumentedAttribute(String, String)

初始化一個新實例, InstrumentedAttribute 設定為指定命名空間及該組合內儀器安全設定的類別實例。

InstrumentedAttribute()

初始化一個新的類別實例 InstrumentedAttribute ,該類別設定為根/預設命名空間。 這就是無參數建構子。

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

備註

.NET Framework 安全性

完全信任當下的來電者。 此成員無法被部分受信任的程式碼使用。 欲了解更多資訊,請參閱 「部分受信任程式碼的函式庫使用」。

適用於

InstrumentedAttribute(String)

初始化一個新實例 InstrumentedAttribute ,該類別設定為指定命名空間,用於此組合體中的儀器化。

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)

參數

namespaceName
String

用於儀器實例與事件的命名空間。

備註

.NET Framework 安全性

完全信任當下的來電者。 此成員無法被部分受信任的程式碼使用。 欲了解更多資訊,請參閱 「部分受信任程式碼的函式庫使用」。

適用於

InstrumentedAttribute(String, String)

初始化一個新實例, InstrumentedAttribute 設定為指定命名空間及該組合內儀器安全設定的類別實例。

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)

參數

namespaceName
String

用於儀器實例與事件的命名空間。

securityDescriptor
String

一個安全描述符,允許只有指定的使用者或群組能執行提供此組合所支援的儀器化的應用程式。

備註

.NET Framework 安全性

完全信任當下的來電者。 此成員無法被部分受信任的程式碼使用。 欲了解更多資訊,請參閱 「部分受信任程式碼的函式庫使用」。

適用於