Quantcast
Channel: Xamarin.Mac — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 1429

Getting domain Name in xamarin.mac

$
0
0

hi,

i am not able to fetch the domain name in xamarin as i would in windows. please help.
i tried the below options with no luck:

var domainname = new System.Text.StringBuilder(256);
Mono.Unix.Native.Syscall.getdomainname(domainname,
(ulong)domainname.Capacity);

string domainname=System.Net.NetworkInformation.IPGlobalProperties.GetIPGlobalProperties().DomainName;


Viewing all articles
Browse latest Browse all 1429

Trending Articles