PerformanceCounterPermissionAttribute.MachineName 属性

获取或设置性能计数器的计算机名称。

**命名空间:**System.Diagnostics
**程序集:**System(在 system.dll 中)

语法

声明
Public Property MachineName As String
用法
Dim instance As PerformanceCounterPermissionAttribute
Dim value As String

value = instance.MachineName

instance.MachineName = value
public string MachineName { get; set; }
public:
property String^ MachineName {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_MachineName ()

/** @property */
public void set_MachineName (String value)
public function get MachineName () : String

public function set MachineName (value : String)

属性值

性能计数器类别驻留的服务器。

异常

异常类型 条件

ArgumentException

MachineName 格式无效。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

PerformanceCounterPermissionAttribute 类
PerformanceCounterPermissionAttribute 成员
System.Diagnostics 命名空间