ArcFM Mobile Developer Guide
Check Class
Members 


Version: 10.2.1a

Resource Center Home

Product Availability
ArcFM Mobile
Required Licenses
ArcFM Mobile
.NET Assembly
Miner.Tasks.dll
This class checks for DesignByContract exceptions. Each method generates an exception or a trace assertion statement if the contract is broken.
Object Model
Check Class
Syntax
'Declaration
 
Public NotInheritable Class Check 
'Usage
 
Dim instance As Check
public sealed class Check 
Remarks
This example shows how to call the Require method. public void Test(int x) { try { Check.Require(x > 1, "x must be > 1"); } catch (System.Exception ex) { Console.WriteLine(ex.ToString()); } } You can direct output to a Trace listener. For example, you could insert Trace.Listeners.Clear(); Trace.Listeners.Add(new TextWriterTraceListener(Console.Out)); or direct output to a file or the Event Log. (Note: For ASP.NET clients use the Listeners collection of the Debug, not the Trace, object and, for a Release build, only exception-handling is possible.)
Inheritance Hierarchy

System.Object
   Miner.Tasks.Check

Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

Check Members
Miner.Tasks Namespace

 

 


Send Comment