<?xml version="1.0" encoding="utf-8"?>
<Type Name="Rule" FullName="System.Data.Rule">
  <TypeSignature Language="C#" Maintainer="auto" Value="public enum Rule" />
  <AssemblyInfo>
    <AssemblyName>System.Data</AssemblyName>
    <AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey>
    <AssemblyVersion>1.0.3300.0</AssemblyVersion>
    <AssemblyVersion>1.0.5000.0</AssemblyVersion>
    <AssemblyVersion>2.0.0.0</AssemblyVersion>
  </AssemblyInfo>
  <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement>
  <Base>
    <BaseTypeName>System.Enum</BaseTypeName>
  </Base>
  <Docs>
    <remarks>
      <attribution license="cc4" from="Microsoft" modified="false" />
      <para>The <see cref="T:System.Data.Rule" /> values are set to the <see cref="P:System.Data.ForeignKeyConstraint.UpdateRule" /> and the <see cref="P:System.Data.ForeignKeyConstraint.DeleteRule" /> properties of a <see cref="T:System.Data.ForeignKeyConstraint" /> object found in a <see cref="T:System.Data.DataTable" /> object's <see cref="T:System.Data.ConstraintCollection" />.</para>
      <para>The <see cref="T:System.Data.Rule" /> values determine the action that occurs when a value in a column is either deleted or updated. Of the two, deleting a value is the more critical and demanding of attention when setting a rule.</para>
      <para>In the case where a value is deleted, Cascade specifies that all rows containing that value are also deleted. SetNull specifies that values in all child columns are set to null values. SetDefault specifies that all child columns be set to the default value for the column. None specifies that no action will occur, but exceptions are generated.</para>
      <para>In the case where a value is updated, Cascade specifies that all child columns are likewise updated with the new value. SetNull specifies that all child columns be set to null values. SetDefault specifies that all child column values be set to the default value. None specifies that no action be taken, but exceptions are generated.</para>
      <para>Constraints on a <see cref="T:System.Data.DataSet" /> are not enforced unless the <see cref="P:System.Data.DataSet.EnforceConstraints" /> property is true.</para>
      <para>When the <see cref="M:System.Data.DataTable.AcceptChanges" /> method is called, the <see cref="P:System.Data.ForeignKeyConstraint.AcceptRejectRule" /> further determines what action occurs.</para>
    </remarks>
    <summary>
      <attribution license="cc4" from="Microsoft" modified="false" />
      <para>Indicates the action that occurs when a <see cref="T:System.Data.ForeignKeyConstraint" /> is enforced.</para>
    </summary>
  </Docs>
  <Members>
    <Member MemberName="Cascade">
      <MemberSignature Language="C#" Value="Cascade" />
      <MemberType>Field</MemberType>
      <ReturnValue>
        <ReturnType>System.Data.Rule</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <remarks>To be added</remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>Delete or update related rows. This is the default.</para>
        </summary>
      </Docs>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
      </AssemblyInfo>
    </Member>
    <Member MemberName="None">
      <MemberSignature Language="C#" Value="None" />
      <MemberType>Field</MemberType>
      <ReturnValue>
        <ReturnType>System.Data.Rule</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <remarks>To be added</remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>No action taken on related rows.</para>
        </summary>
      </Docs>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
      </AssemblyInfo>
    </Member>
    <Member MemberName="SetDefault">
      <MemberSignature Language="C#" Value="SetDefault" />
      <MemberType>Field</MemberType>
      <ReturnValue>
        <ReturnType>System.Data.Rule</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <remarks>To be added</remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>Set values in related rows to the value contained in the <see cref="P:System.Data.DataColumn.DefaultValue" /> property.</para>
        </summary>
      </Docs>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
      </AssemblyInfo>
    </Member>
    <Member MemberName="SetNull">
      <MemberSignature Language="C#" Value="SetNull" />
      <MemberType>Field</MemberType>
      <ReturnValue>
        <ReturnType>System.Data.Rule</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <remarks>To be added</remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>Set values in related rows to DBNull.</para>
        </summary>
      </Docs>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
      </AssemblyInfo>
    </Member>
  </Members>
</Type>