InstrumentedAttribute 构造函数 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 InstrumentedAttribute 类的新实例。
重载
| 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 安全性
对直接调用方的完全信任。 此成员不能由部分信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码中的库。