You just need to check if the codebase of your assembly starts with "http" or "https". However the Uri class of the .NET framework contains constants for the two values (UriSchemeHttp and UriSchemeHttps).
if (codeBase.StartsWith(Uri.UriSchemeHttp) || codeBase.StartsWith(Uri.UriSchemeHttps)) { // app was launched via URL }
Copyright (C) 2003-2009 dotnet-online.com. All Rights reserved.
Contact Me | Legal