共用方式為


WebProcessInformation.ProcessName 屬性

定義

取得處理序的名稱。

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

屬性值

String

處理序的名稱。

範例

下列範例示範如何取得進程名稱。

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

備註

這是裝載 ASP.NET 的背景工作進程名稱。

適用於