サービスが常駐するコンピュータの名前を取得または設定します。
Public Property MachineName As String
[C#]
public string MachineName {get; set;}
[C++]
public: __property String* get_MachineName();public: __property void set_MachineName(String*);
[JScript]
public function get MachineName() : String;public function set MachineName(String);
プロパティ値
ServiceController に関連付けられているサービスを実行しているコンピュータの名前。
例外
例外の種類 | 条件 |
---|---|
ArgumentException | MachineName 構文が無効です。 |
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
.NET Framework セキュリティ:
- 直前の呼び出し元の完全信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細の参照先 : 部分信頼コードからのライブラリの使用
参照
ServiceControllerPermissionAttribute クラス | ServiceControllerPermissionAttribute メンバ | System.ServiceProcess 名前空間