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
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor