WebProcessInformation.ProcessName 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得處理序的名稱。
public:
property System::String ^ ProcessName { System::String ^ get(); };
public string ProcessName { get; }
member this.ProcessName : string
Public ReadOnly Property ProcessName As 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 的背景工作進程名稱。