WebManagementEvent.ProcessInformation Property

 

Gets information about the ASP.NET application-hosting process.

Namespace:   System.Web.Management
Assembly:  System.Web (in System.Web.dll)

Public ReadOnly Property ProcessInformation As WebProcessInformation

Property Value

Type: System.Web.Management.WebProcessInformation

A WebProcessInformation object that contains information about the process.

The following code example shows how to obtain the ProcessInformation value.

' Obtains the current process information.
Public Function GetProcessInfo() As String
   Dim tempPi As New StringBuilder()
   Dim pi As WebProcessInformation = ProcessInformation
     tempPi.Append( _
     (pi.ProcessName + Environment.NewLine))
     tempPi.Append( _
     (pi.ProcessID.ToString() + Environment.NewLine))
     tempPi.Append( _
     (pi.AccountName + Environment.NewLine))
   Return tempPi.ToString()
End Function 'GetProcessInfo

.NET Framework
Available since 2.0
Return to top
Show: