Udostępnij za pośrednictwem


WebProcessInformation.ProcessID Właściwość

Definicja

Pobiera identyfikator procesu.

public:
 property int ProcessID { int get(); };
public int ProcessID { get; }
member this.ProcessID : int
Public ReadOnly Property ProcessID As Integer

Wartość właściwości

Identyfikator procesu.

Przykłady

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

public string GetProcessId()
{
    // Get the process identifier.
    return (string.Format(
        "Process Id: {0}", 
        ProcessInformation.ProcessID.ToString()));
}
Public Function GetProcessId() As String
   ' Get the process identifier.
     Return String.Format("Process Id: {0}", _
     processInformation.ProcessID.ToString())
End Function 'GetProcessId

Uwagi

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

Dotyczy