Cocktail Help Reference
Fail Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > NavigationCancelArgs Class : Fail Method



error
The reason why the navigation failed.

Glossary Item Box

Signals to the current navigation that it must continue with the provided error.

Syntax

Visual Basic (Declaration) 
Public Sub Fail( _
   ByVal error As Exception _
) 
Visual Basic (Usage)Copy Code
Dim instance As NavigationCancelArgs
Dim error As Exception
 
instance.Fail(error)
C# 
public void Fail( 
   Exception error
)
C++/CLI 
public:
void Fail( 
   Exception^ error
) 

Parameters

error
The reason why the navigation failed.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.