InstrumentedAttribute 建構函式

定義

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

多載

InstrumentedAttribute()

初始化 InstrumentedAttribute 類別的新執行個體,這個執行個體是為根\預設值命名空間 (Namespace) 設定的。 這是無參數建構函式。

InstrumentedAttribute(String)

初始化 InstrumentedAttribute 類別的新執行個體,這個執行個體可設定至這個組件中檢測的指定命名空間。

InstrumentedAttribute(String, String)

初始化 InstrumentedAttribute 類別的新執行個體,這個執行個體可設定至這個組件中檢測的指定命名空間和安全性設定。

InstrumentedAttribute()

初始化 InstrumentedAttribute 類別的新執行個體,這個執行個體是為根\預設值命名空間 (Namespace) 設定的。 這是無參數建構函式。

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

安全性描述元 (Security Descriptor),它可以只讓指定的使用者或群組執行應用程式,提供這個組件所支援的檢測。

備註

.NET Framework 安全性

完全信任立即呼叫者。 這個成員無法供部分信任的程式碼使用。 如需詳細資訊,請參閱 使用部分信任程式碼的程式庫

適用於