WebProcessInformation.AccountName Property

 

Gets the account name for the worker process.

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

Public ReadOnly Property AccountName As String

Property Value

Type: System.String

The worker process account name.

Your application needs the appropriate permissions to access the information provided by this property.

The following example shows how to obtain the process account name.

Public Function GetAccountName() As String
   ' Get the name of the account.
     Return String.Format("Account name: {0}", _
     processInformation.AccountName)
End Function 'GetAccountName

.NET Framework
Available since 2.0
Return to top
Show: