Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

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 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>