Walter.Net.Networking
IsSubDomainOf(Uri,Uri) Method
Walter.Net.Networking Assembly > Walter.Net.Networking Namespace > NetworkExtensionMethods Class > IsSubDomainOf Method : IsSubDomainOf(Uri,Uri) Method
The baseline url
the other url to test
Return the first index of the domain where the URI is a sub domain of
Syntax
public static bool IsSubDomainOf( 
   Uri sender,
   Uri test
)

Parameters

sender
The baseline url
test
the other url to test

Return Value

True if only the sub domains differ
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