public bool IsLocal () { // webcal is cached locally, so it's ok. // contacts:/// is the URI for birthdays and // such out of the addressbook, so it's ok too. // // System.Uri really sucks; we can't use it // because it throws an exception on URIs w/o // a hostname (like "contacts:///"), so we // have to deal with the strings directly. return Uri.StartsWith ("file://") || Uri.StartsWith ("webcal://") || Uri.StartsWith ("contacts://"); }