How can i get the DomainName\AccountName with the .NET Framework?

.net, account, dns, vb.net

Solution

System.Security.Principal.WindowsIdentity.GetCurrent().Name;

Problem

How can i get the DomainName\AccountName as string with the .NET Framework?

Original source