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

Description

Gets the DNS host name or IP address and the port number for a server.

Syntax

uriInstance.Authority

Arguments

None

Return value

ClassDescription
stringThe DNS host name or IP address and the port number for a server.

Sample code

//anyUri is a instance of uri type.

string authority = anyUri.Authority;

Notes

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

Links for reference

Copyright © Rice All rights reserved.