4 <name>AttributeUser</name>
7 <member name="T:AttributeUser.ItemProcessor">
9 The ItemProcessor class uses the custom attribute defined in the TraceLibrary
10 project to provide trace output services to the class based on the trace
11 level defined in the application configuration file.
14 <member name="M:AttributeUser.ItemProcessor.ProcessItem(System.String,System.Int32@)">
16 This method simulates calls to process various items and is used to
17 demonstrate the TraceAttribute's functionality. Infrequently, this
18 method will throw exceptions, and at other times will supply additional
19 trace output in the form of Warning and Verbose messages.
22 Note that even if this class remained unaware that the TraceOutput object
23 was available through the call context, the TraceAttribute would still
24 provide tracing functionality.
26 <param name="itemName">The name of the item to be processed</param>
27 <param name="total">A "ref" parameter whose value is shown (before and after the call) in the trace output</param>
28 <returns>A new string based on the item name and the wait time generated within the method</returns>
30 <member name="T:AttributeUser.MainForm">
32 The MainForm class provides the client interface for this sample.
35 <member name="F:AttributeUser.MainForm.components">
37 Required designer variable.
40 <member name="M:AttributeUser.MainForm.#ctor">
42 Creates a new instance of the main form.
45 <member name="M:AttributeUser.MainForm.Dispose(System.Boolean)">
47 Clean up any resources being used.
50 <member name="M:AttributeUser.MainForm.InitializeComponent">
52 Required method for Designer support - do not modify
53 the contents of this method with the code editor.
56 <member name="M:AttributeUser.MainForm.Main">
58 The main entry point for the application.
61 <member name="M:AttributeUser.MainForm.ItemNameTextBox_TextChanged(System.Object,System.EventArgs)">
63 This method enables the Add button if the text box contains any non-empty
64 data, or disables the Add button otherwise.
66 <param name="sender"></param>
67 <param name="e"></param>
69 <member name="M:AttributeUser.MainForm.AddItemButton_Click(System.Object,System.EventArgs)">
71 This method adds the entry in the item name text box to the list of
72 items to be processed.
74 <param name="sender"></param>
75 <param name="e"></param>
77 <member name="M:AttributeUser.MainForm.ProcessItemsButton_Click(System.Object,System.EventArgs)">
79 This method loops through the list of items to be processed and calls
80 the ItemProcessor's ProcessItem method for each, handling any
81 exception that may have been generated.
83 <param name="sender"></param>
84 <param name="e"></param>