Udostępnij za pośrednictwem


WebProcessInformation.ProcessName Właściwość

Definicja

Pobiera nazwę procesu.

public:
 property System::String ^ ProcessName { System::String ^ get(); };
public string ProcessName { get; }
member this.ProcessName : string
Public ReadOnly Property ProcessName As String

Wartość właściwości

Nazwa procesu

Przykłady

W poniższym przykładzie pokazano, jak uzyskać nazwę procesu.

public string GetProcessName()
{
    // Get the requests in execution.
    return (string.Format(
        "Process name: {0}", 
        ProcessInformation.ProcessName));
}
Public Function GetProcessName() As String
   ' Get the requests in execution.
     Return String.Format("Process name: {0}", _
     ProcessInformation.ProcessName)
End Function 'GetProcessName

Uwagi

Jest to nazwa procesu roboczego, który hostuje ASP.NET.

Dotyczy