Partage via


WebProcessInformation.AccountName Propriété

Définition

Obtient le nom du compte pour le processus de traitement.

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

Valeur de propriété

String

Nom du compte du processus de traitement.

Exemples

L’exemple suivant montre comment obtenir le nom du compte de processus.

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

Remarques

Votre application a besoin des autorisations appropriées pour accéder aux informations fournies par cette propriété.

S’applique à