Home Cooker Classes Others Rice CookerGX
Classes  >  uri  >  DnsSafeHost
uri class : DnsSafeHost getter

Description

Gets an unescaped host name that is safe to use for DNS resolution.

Syntax

uriInstance.DnsSafeHost

Arguments

None

Return value

ClassDescription
stringAn unescaped host name that is safe to use for DNS resolution.

Sample code

//anyUri is a instance of uri type.

string safeHost = anyUri.DnsSafeHost;

Notes

It's a wrapper of the System.Uri.DnsSafeHost.

Links for reference

Copyright © Rice All rights reserved.