Binding.DataSource Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the data source for this binding.
public:
property System::Object ^ DataSource { System::Object ^ get(); };
public object DataSource { get; }
public object? DataSource { get; }
member this.DataSource : obj
Public ReadOnly Property DataSource As Object
Property Value
An Object that represents the data source.
Examples
The following code example uses the DataSource property to return a DataSet.
private:
void GetDataSource()
{
DataSet^ ds = dynamic_cast<DataSet^>(text1->DataBindings[nullptr]->DataSource);
Console::WriteLine( ds->Tables[ 0 ]->TableName );
}
private void GetDataSource()
{
DataSet ds = (DataSet) text1.DataBindings[0].DataSource;
Console.WriteLine(ds.Tables[0].TableName);
}
Private Sub GetDataSource
Dim ds As DataSet = CType(text1.DataBindings(0).DataSource, DataSet)
Console.WriteLine(ds.Tables(0).TableName)
End Sub
Remarks
Possible data sources include:
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.