Bagikan melalui


WebProcessInformation.AccountName Properti

Definisi

Mendapatkan nama akun untuk proses pekerja.

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

Nilai Properti

Nama akun proses pekerja.

Contoh

Contoh berikut menunjukkan cara mendapatkan nama akun proses.

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

Keterangan

Aplikasi Anda memerlukan izin yang sesuai untuk mengakses informasi yang disediakan oleh properti ini.

Berlaku untuk