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

一个 SafeHandle,包含服务的句柄。

属性

例外

未找到服务。

适用于