You can do this to get just the last two segments of the host name: string[] hostParts = new System.Uri(sURL).Host.Split('.'); string domain = String.Join("." ...
確定! 回上一頁