共用方式為


ServiceController.ServiceHandle 屬性

定義

取得服務的控制代碼。

public:
 property System::Runtime::InteropServices::SafeHandle ^ ServiceHandle { System::Runtime::InteropServices::SafeHandle ^ get(); };
public System.Runtime.InteropServices.SafeHandle ServiceHandle { get; }
[System.ComponentModel.Browsable(false)]
public System.Runtime.InteropServices.SafeHandle ServiceHandle { get; }
member this.ServiceHandle : System.Runtime.InteropServices.SafeHandle
[<System.ComponentModel.Browsable(false)>]
member this.ServiceHandle : System.Runtime.InteropServices.SafeHandle
Public ReadOnly Property ServiceHandle As SafeHandle

屬性值

SafeHandle,包含服務的控制代碼。

屬性

例外狀況

找不到服務。

適用於