Walter.Net.Networking
IsSubDomainOf(Uri,List<Uri>) Method
Walter.Net.Networking Assembly > Walter.Net.Networking Namespace > NetworkExtensionMethods Class > IsSubDomainOf Method : IsSubDomainOf(Uri,List<Uri>) Method
The URL to test
the list of domains to test against
Return the first index of the domain where the URI is a sub domain of
Syntax
public static int IsSubDomainOf( 
   Uri sender,
   List<Uri> urls
)

Parameters

sender
The URL to test
urls
the list of domains to test against

Return Value

-1 of not found or the
Remarks
Test the main domain being a first level http://www.domain.com or a 2nd level domain like http://www.domain.co.uk
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NetworkExtensionMethods Class
NetworkExtensionMethods Members
Overload List