.NET Framework Class Library
Constraint..::.Table Property

Gets the DataTable to which the constraint applies.

Namespace:  System.Data
Assembly:  System.Data (in System.Data.dll)
Syntax

Visual Basic (Declaration)
Public MustOverride ReadOnly Property Table As DataTable
Visual Basic (Usage)
Dim instance As Constraint
Dim value As DataTable

value = instance.Table
C#
public abstract DataTable Table { get; }
Visual C++
public:
virtual property DataTable^ Table {
    DataTable^ get () abstract;
}
JScript
public abstract function get Table () : DataTable

Property Value

Type: System.Data..::.DataTable
A DataTable to which the constraint applies.
Examples

The following example returns the DataTable of a Constraint.

Visual Basic
Private Sub GetDataTable(constraint As UniqueConstraint)
    Dim table As DataTable = constraint.Table
    Console.WriteLine(table.TableName)
End Sub
C#
private void GetDataTable(UniqueConstraint constraint){
   DataTable table = constraint.Table;
   Console.WriteLine(table.TableName);
}
Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

XNA Framework

Supported in: 3.0, 2.0, 1.0
See Also

Reference

Tags :


Page view tracker