DataColumnMappingCollection.GetByDataSetColumn(String) Method
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 DataColumnMapping object with the specified DataSet column name.
public:
System::Data::Common::DataColumnMapping ^ GetByDataSetColumn(System::String ^ value);
public System.Data.Common.DataColumnMapping GetByDataSetColumn (string value);
member this.GetByDataSetColumn : string -> System.Data.Common.DataColumnMapping
Public Function GetByDataSetColumn (value As String) As DataColumnMapping
Parameters
Returns
The DataColumnMapping object with the specified DataSet column name.
Examples
The following example searches for a DataColumnMapping within the collection. If the object exists, it is returned. The example assumes that a DataColumnMappingCollection collection and a DataColumnMapping object have been created.
public void FindDataColumnMapping()
{
// ...
// create mappings and mapping
// ...
if (mappings.IndexOfDataSetColumn("datadescription") != -1)
mapping = mappings.GetByDataSetColumn("datadescription");
}
Public Sub FindDataColumnMapping()
' ...
' create mappings and mapping
' ...
If mappings.IndexOfDataSetColumn("datadescription") <> - 1 Then
mapping = mappings.GetByDataSetColumn("datadescription")
End If
End Sub
Applies to
See also
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.