Event arguments for the SourceVerification event.
상속: System.EventArgs
        private bool IsSourceVerification(Uri sourceUrl, Uri entryUrl)
        {
            EventHandler <SourceVerificationEventArgs> handler = SourceVerification;

            if (handler != null)
            {
                var args = new SourceVerificationEventArgs(sourceUrl, entryUrl);
                handler(this, args);
                return(args.Verified);
            }
            return(Verifier.SourceContainsTarget(sourceUrl, entryUrl));
        }
예제 #2
0
 private static void handler_SourceVerification(object sender, SourceVerificationEventArgs e)
 {
     e.Verified = true;
 }
예제 #3
0
 private bool IsSourceVerification(Uri sourceUrl, Uri entryUrl)
 {
     SourceVerificationEventHandler handler = SourceVerification;
     if (handler != null)
     {
         SourceVerificationEventArgs args = new SourceVerificationEventArgs(sourceUrl, entryUrl);
         handler(this, args);
         return args.Verified;
     }
     else
     {
         return Verifier.SourceContainsTarget(sourceUrl, entryUrl);
     }
 }