1<?xml version="1.0" encoding="utf-8"?>
2<Type Name="DetailsViewInsertedEventArgs" FullName="System.Web.UI.WebControls.DetailsViewInsertedEventArgs">
3  <TypeSignature Language="C#" Value="public class DetailsViewInsertedEventArgs : EventArgs" />
4  <AssemblyInfo>
5    <AssemblyName>System.Web</AssemblyName>
6    <AssemblyVersion>2.0.0.0</AssemblyVersion>
7  </AssemblyInfo>
8  <Base>
9    <BaseTypeName>System.EventArgs</BaseTypeName>
10  </Base>
11  <Interfaces />
12  <Docs>
13    <since version=".NET 2.0" />
14    <remarks>
15      <attribution license="cc4" from="Microsoft" modified="false" />
16      <para>The <see cref="T:System.Web.UI.WebControls.DetailsView" /> control raises the <see cref="E:System.Web.UI.WebControls.DetailsView.ItemInserted" /> event when an Insert button (a button with its CommandName property set to "Insert") within the control is clicked, but after the <see cref="T:System.Web.UI.WebControls.DetailsView" /> control inserts the record. This allows you to provide an event handler that performs a custom routine, such as checking the results of an insert operation, whenever this event occurs.</para>
17      <para>A <see cref="T:System.Web.UI.WebControls.DetailsViewInsertedEventArgs" /> object is passed to the event handler, which allows you to determine the number of records affected and any exceptions that might have occurred. To determine the number of records affected by the insert operation, use the <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.AffectedRows" /> property. Use the <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.Exception" /> property to determine whether any exceptions occurred. You can also indicate whether the exception was handled in the event handler by setting the <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.ExceptionHandled" /> property. If you need to access the values of the inserted record, use the <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.Values" /> property.</para>
18      <para>By default, the <see cref="T:System.Web.UI.WebControls.DetailsView" /> control returns to the mode specified by the <see cref="P:System.Web.UI.WebControls.DetailsView.DefaultMode" /> property after an insert operation. To keep the <see cref="T:System.Web.UI.WebControls.DetailsView" /> control in insert mode, set the <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.KeepInInsertMode" /> property to true.</para>
19      <para>For more information about handling events, see <format type="text/html"><a href="01e4f1bc-e55e-413f-98c7-6588493e5f67">Consuming Events</a></format>.</para>
20      <para>For a list of initial property values for an instance of the <see cref="T:System.Web.UI.WebControls.DetailsViewDeletedEventArgs" /> class, see the <see cref="M:System.Web.UI.WebControls.DetailsViewDeletedEventArgs.#ctor(System.Int32,System.Exception)" /> constructor.</para>
21    </remarks>
22    <summary>
23      <attribution license="cc4" from="Microsoft" modified="false" />
24      <para>Provides data for the <see cref="E:System.Web.UI.WebControls.DetailsView.ItemInserted" /> event.</para>
25    </summary>
26  </Docs>
27  <Members>
28    <Member MemberName=".ctor">
29      <MemberSignature Language="C#" Value="public DetailsViewInsertedEventArgs (int affectedRows, Exception e);" />
30      <MemberType>Constructor</MemberType>
31      <Parameters>
32        <Parameter Name="affectedRows" Type="System.Int32" />
33        <Parameter Name="e" Type="System.Exception" />
34      </Parameters>
35      <Docs>
36        <since version=".NET 2.0" />
37        <remarks>
38          <attribution license="cc4" from="Microsoft" modified="false" />
39          <para>Use this constructor to initialize a new instance of the <see cref="T:System.Web.UI.WebControls.DetailsViewInsertedEventArgs" /> class.</para>
40          <para>The following table shows the initial property values for an instance of <see cref="T:System.Web.UI.WebControls.DetailsViewInsertedEventArgs" />.</para>
41          <list type="table">
42            <listheader>
43              <item>
44                <term>
45                  <para>Property </para>
46                </term>
47                <description>
48                  <para>Initial value </para>
49                </description>
50              </item>
51            </listheader>
52            <item>
53              <term>
54                <para>
55                  <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.AffectedRows" />
56                </para>
57              </term>
58              <description>
59                <para>The value of the <paramref name="affectedRows" /> parameter.</para>
60              </description>
61            </item>
62            <item>
63              <term>
64                <para>
65                  <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.Exception" />
66                </para>
67              </term>
68              <description>
69                <para>The <see cref="T:System.Exception" /> object contained in the <paramref name="e" /> parameter.</para>
70              </description>
71            </item>
72            <item>
73              <term>
74                <para>
75                  <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.ExceptionHandled" />
76                </para>
77              </term>
78              <description>
79                <para>Initialized to false.</para>
80              </description>
81            </item>
82            <item>
83              <term>
84                <para>
85                  <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.KeepInInsertMode" />
86                </para>
87              </term>
88              <description>
89                <para>Initialized to false.</para>
90              </description>
91            </item>
92          </list>
93          <block subset="none" type="note">
94            <para>This constructor is used primarily by control developers when raising events.</para>
95          </block>
96        </remarks>
97        <summary>
98          <attribution license="cc4" from="Microsoft" modified="false" />
99          <para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.DetailsViewInsertedEventArgs" /> class.</para>
100        </summary>
101        <param name="affectedRows">
102          <attribution license="cc4" from="Microsoft" modified="false" />The number of rows affected by the insert operation.</param>
103        <param name="e">
104          <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Exception" /> that represents the exception raised when the insert operation was performed. If no exception was raised, use null for this parameter.</param>
105      </Docs>
106      <AssemblyInfo>
107        <AssemblyVersion>2.0.0.0</AssemblyVersion>
108      </AssemblyInfo>
109    </Member>
110    <Member MemberName="AffectedRows">
111      <MemberSignature Language="C#" Value="public int AffectedRows { get; }" />
112      <MemberType>Property</MemberType>
113      <ReturnValue>
114        <ReturnType>System.Int32</ReturnType>
115      </ReturnValue>
116      <Docs>
117        <value>To be added.</value>
118        <since version=".NET 2.0" />
119        <remarks>
120          <attribution license="cc4" from="Microsoft" modified="false" />
121          <para>Use the <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.AffectedRows" /> property to determine the number of rows affected by the insert operation. This value is commonly used to verify that the appropriate number of rows was inserted.</para>
122        </remarks>
123        <summary>
124          <attribution license="cc4" from="Microsoft" modified="false" />
125          <para>Gets the number of rows affected by the insert operation.</para>
126        </summary>
127      </Docs>
128      <AssemblyInfo>
129        <AssemblyVersion>2.0.0.0</AssemblyVersion>
130      </AssemblyInfo>
131    </Member>
132    <Member MemberName="Exception">
133      <MemberSignature Language="C#" Value="public Exception Exception { get; }" />
134      <MemberType>Property</MemberType>
135      <ReturnValue>
136        <ReturnType>System.Exception</ReturnType>
137      </ReturnValue>
138      <Docs>
139        <value>To be added.</value>
140        <since version=".NET 2.0" />
141        <remarks>
142          <attribution license="cc4" from="Microsoft" modified="false" />
143          <para>Use the <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.Exception" /> property to determine the exception (if any) that was raised during the insert operation. If no exceptions were raised, this property returns null.</para>
144          <block subset="none" type="note">
145            <para>If an exception was raised and you decide to handle the exception in the event handler, be sure to set the <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.ExceptionHandled" /> property to true; otherwise, the exception is passed to the next method on the call stack for handling.</para>
146          </block>
147        </remarks>
148        <summary>
149          <attribution license="cc4" from="Microsoft" modified="false" />
150          <para>Gets the exception (if any) that was raised during the insert operation.</para>
151        </summary>
152      </Docs>
153      <AssemblyInfo>
154        <AssemblyVersion>2.0.0.0</AssemblyVersion>
155      </AssemblyInfo>
156    </Member>
157    <Member MemberName="ExceptionHandled">
158      <MemberSignature Language="C#" Value="public bool ExceptionHandled { set; get; }" />
159      <MemberType>Property</MemberType>
160      <ReturnValue>
161        <ReturnType>System.Boolean</ReturnType>
162      </ReturnValue>
163      <Docs>
164        <value>To be added.</value>
165        <since version=".NET 2.0" />
166        <remarks>
167          <attribution license="cc4" from="Microsoft" modified="false" />
168          <para>When an exception is raised during the insert operation, use the <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.ExceptionHandled" /> property to indicate whether the exception was handled in the event handler. When this property is set to true, the exception is considered handled and is not passed further up the call stack. If this property is set to false, the exception is passed to the next method on the call stack for handling. To determine which exception was raised, use the <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.Exception" /> property.</para>
169        </remarks>
170        <summary>
171          <attribution license="cc4" from="Microsoft" modified="false" />
172          <para>Gets or sets a value indicating whether an exception that was raised during the insert operation was handled in the event handler.</para>
173        </summary>
174      </Docs>
175      <AssemblyInfo>
176        <AssemblyVersion>2.0.0.0</AssemblyVersion>
177      </AssemblyInfo>
178    </Member>
179    <Member MemberName="KeepInInsertMode">
180      <MemberSignature Language="C#" Value="public bool KeepInInsertMode { set; get; }" />
181      <MemberType>Property</MemberType>
182      <ReturnValue>
183        <ReturnType>System.Boolean</ReturnType>
184      </ReturnValue>
185      <Docs>
186        <value>To be added.</value>
187        <since version=".NET 2.0" />
188        <remarks>
189          <attribution license="cc4" from="Microsoft" modified="false" />
190          <para>By default, the <see cref="T:System.Web.UI.WebControls.DetailsView" /> control returns to the mode specified by the <see cref="P:System.Web.UI.WebControls.DetailsView.DefaultMode" /> property. Use the <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.KeepInInsertMode" /> property to specify whether the <see cref="T:System.Web.UI.WebControls.DetailsView" /> control should remain in insert mode after an insert operation. To keep the <see cref="T:System.Web.UI.WebControls.DetailsView" /> control in insert mode, set this property to true.</para>
191          <block subset="none" type="note">
192            <para>This property should be used when you want to want to override the default mode only occasionally. If the <see cref="T:System.Web.UI.WebControls.DetailsView" /> control needs to remain in insert mode by default, set the <see cref="P:System.Web.UI.WebControls.DetailsView.DefaultMode" /> property instead.</para>
193          </block>
194        </remarks>
195        <summary>
196          <attribution license="cc4" from="Microsoft" modified="false" />
197          <para>Gets or sets a value indicating whether the <see cref="T:System.Web.UI.WebControls.DetailsView" /> control should remain in insert mode after an insert operation.</para>
198        </summary>
199      </Docs>
200      <AssemblyInfo>
201        <AssemblyVersion>2.0.0.0</AssemblyVersion>
202      </AssemblyInfo>
203    </Member>
204    <Member MemberName="Values">
205      <MemberSignature Language="C#" Value="public System.Collections.Specialized.IOrderedDictionary Values { get; }" />
206      <MemberType>Property</MemberType>
207      <ReturnValue>
208        <ReturnType>System.Collections.Specialized.IOrderedDictionary</ReturnType>
209      </ReturnValue>
210      <Docs>
211        <value>To be added.</value>
212        <since version=".NET 2.0" />
213        <remarks>
214          <attribution license="cc4" from="Microsoft" modified="false" />
215          <para>Use the <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.Values" /> property to access the values of the fields for the inserted record. For example, you can use these values to keep a log of inserted records.</para>
216          <para>The <see cref="P:System.Web.UI.WebControls.DetailsViewInsertedEventArgs.Values" /> property returns an object that implements the <see cref="T:System.Collections.Specialized.IOrderedDictionary" /> interface. The object contains <see cref="T:System.Collections.DictionaryEntry" /> objects that represent the fields of the inserted record.</para>
217          <block subset="none" type="note">
218            <para>As a shortcut, you can also use the indexer of the <see cref="T:System.Collections.Specialized.IOrderedDictionary" /> object to access the field values directly.</para>
219          </block>
220        </remarks>
221        <summary>
222          <attribution license="cc4" from="Microsoft" modified="false" />
223          <para>Gets a dictionary that contains the field name/value pairs for the inserted record.</para>
224        </summary>
225      </Docs>
226      <AssemblyInfo>
227        <AssemblyVersion>2.0.0.0</AssemblyVersion>
228      </AssemblyInfo>
229    </Member>
230  </Members>
231</Type>