WindowsServiceHelpers.IsWindowsService Método

Definição

Verifique se o processo atual está hospedado como um serviço de Windows.

public:
 static bool IsWindowsService();
[System.Runtime.Versioning.SupportedOSPlatformGuard("windows")]
public static bool IsWindowsService();
public static bool IsWindowsService();
[<System.Runtime.Versioning.SupportedOSPlatformGuard("windows")>]
static member IsWindowsService : unit -> bool
static member IsWindowsService : unit -> bool
Public Shared Function IsWindowsService () As Boolean

Retornos

true se o processo atual estiver hospedado como um serviço de Windows; caso contrário, false.

Atributos

Aplica-se a