WebProcessInformation.AccountName Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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.