DataColumnMappingCollection Sınıf
Tanım
Bir nesne koleksiyonu içerir DataColumnMapping .Contains a collection of DataColumnMapping objects.
public ref class DataColumnMappingCollection sealed : MarshalByRefObject, System::Collections::IList, System::Data::IColumnMappingCollection
public ref class DataColumnMappingCollection sealed : MarshalByRefObject, System::Data::IColumnMappingCollection
public sealed class DataColumnMappingCollection : MarshalByRefObject, System.Collections.IList, System.Data.IColumnMappingCollection
public sealed class DataColumnMappingCollection : MarshalByRefObject, System.Data.IColumnMappingCollection
type DataColumnMappingCollection = class
inherit MarshalByRefObject
interface ICollection
interface IEnumerable
interface IList
interface IColumnMappingCollection
type DataColumnMappingCollection = class
inherit MarshalByRefObject
interface IColumnMappingCollection
interface IList
interface ICollection
interface IEnumerable
Public NotInheritable Class DataColumnMappingCollection
Inherits MarshalByRefObject
Implements IColumnMappingCollection, IList
Public NotInheritable Class DataColumnMappingCollection
Inherits MarshalByRefObject
Implements IColumnMappingCollection
- Devralma
- Uygulamalar
Örnekler
Aşağıdaki örnek, koleksiyonuna için bir DataTableMapping için bir Add DataColumnMapping ColumnMappings ve daha fazla eşleşen kaynak sütunlarının bir listesini görüntüler.The following example uses a DataTableMapping to Add several DataColumnMapping objects to its ColumnMappings collection, and then displays a list of those mapped source columns. Bu örnek, bir ' DataTableMapping ın zaten oluşturulduğunu varsayar.This example assumes that a DataTableMapping has already been created.
public void ShowColumnMappings()
{
// ...
// create tableMapping
// ...
tableMapping.ColumnMappings.Add("Category Name","DataCategory");
tableMapping.ColumnMappings.Add("Description","DataDescription");
tableMapping.ColumnMappings.Add("Picture","DataPicture");
Console.WriteLine("Column Mappings");
for(int i=0;i < tableMapping.ColumnMappings.Count;i++)
{
Console.WriteLine(" {0} {1}", i,
tableMapping.ColumnMappings[i].ToString());
}
}
Public Sub ShowColumnMappings()
' ...
' create tableMapping
' ...
tableMapping.ColumnMappings.Add( _
"Category Name", "DataCategory")
tableMapping.ColumnMappings.Add( _
"Description", "DataDescription")
tableMapping.ColumnMappings.Add( _
"Picture", "DataPicture")
Console.WriteLine("Column Mappings:")
Dim i As Integer
For i = 0 To tableMapping.ColumnMappings.Count - 1
Console.WriteLine(" {0} {1}", i, _
tableMapping.ColumnMappings(i).ToString())
Next i
End Sub
Oluşturucular
DataColumnMappingCollection() |
Boş oluşturur DataColumnMappingCollection .Creates an empty DataColumnMappingCollection. |
Özellikler
Count |
Koleksiyondaki nesne sayısını alır DataColumnMapping .Gets the number of DataColumnMapping objects in the collection. |
Item[Int32] |
DataColumnMappingBelirtilen dizindeki nesneyi alır veya ayarlar.Gets or sets the DataColumnMapping object at the specified index. |
Item[String] |
DataColumnMappingBelirtilen kaynak sütun adına sahip nesneyi alır veya ayarlar.Gets or sets the DataColumnMapping object with the specified source column name. |
Yöntemler
Add(Object) |
Koleksiyona bir DataColumnMapping nesne ekler.Adds a DataColumnMapping object to the collection. |
Add(String, String) |
DataColumnMappingKaynak sütun adı ve sütun adı verildiğinde koleksiyona bir nesne ekler DataSet .Adds a DataColumnMapping object to the collection when given a source column name and a DataSet column name. |
AddRange(Array) |
Belirtilen öğeleri Array koleksiyonun sonuna kopyalar.Copies the elements of the specified Array to the end of the collection. |
AddRange(DataColumnMapping[]) |
Belirtilen DataColumnMapping dizinin öğelerini koleksiyonun sonuna kopyalar.Copies the elements of the specified DataColumnMapping array to the end of the collection. |
Clear() |
Tüm DataColumnMapping nesneleri koleksiyondan kaldırır.Removes all DataColumnMapping objects from the collection. |
Contains(Object) |
Koleksiyonda verilen bir nesnenin var olup olmadığını gösteren bir değer alır DataColumnMapping Object .Gets a value indicating whether a DataColumnMapping object with the given Object exists in the collection. |
Contains(String) |
DataColumnMappingBelirtilen kaynak sütun adına sahip bir nesnenin koleksiyonda mevcut olup olmadığını gösteren bir değer alır.Gets a value indicating whether a DataColumnMapping object with the given source column name exists in the collection. |
CopyTo(Array, Int32) |
Öğesinin öğelerini DataColumnMappingCollection belirtilen diziye kopyalar.Copies the elements of the DataColumnMappingCollection to the specified array. |
CopyTo(DataColumnMapping[], Int32) |
Öğesinin öğelerini DataColumnMappingCollection belirtilen DataColumnMapping diziye kopyalar.Copies the elements of the DataColumnMappingCollection to the specified DataColumnMapping array. |
CreateObjRef(Type) |
Uzak bir nesneyle iletişim kurmak için kullanılan bir ara sunucu oluşturmak için gereken tüm bilgileri içeren bir nesne oluşturur.Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Devralındığı yer: MarshalByRefObject) |
Equals(Object) |
Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.Determines whether the specified object is equal to the current object. (Devralındığı yer: Object) |
GetByDataSetColumn(String) |
DataColumnMappingBelirtilen sütun adına sahip nesneyi alır DataSet .Gets the DataColumnMapping object with the specified DataSet column name. |
GetColumnMappingBySchemaAction(DataColumnMappingCollection, String, MissingMappingAction) |
DataColumnMappingBelirtilen DataColumnMappingCollection , kaynak sütun adı ve için bir alır MissingMappingAction .Gets a DataColumnMapping for the specified DataColumnMappingCollection, source column name, and MissingMappingAction. |
GetDataColumn(DataColumnMappingCollection, String, Type, DataTable, MissingMappingAction, MissingSchemaAction) |
Bir DataColumn nesneyi örneklemeden bir nesne döndüren statik bir yöntem DataColumnMappingCollection .A static method that returns a DataColumn object without instantiating a DataColumnMappingCollection object. |
GetEnumerator() |
Koleksiyonda yineleyebilir bir Numaralandırıcı alır.Gets an enumerator that can iterate through the collection. |
GetHashCode() |
Varsayılan karma işlevi olarak işlev görür.Serves as the default hash function. (Devralındığı yer: Object) |
GetLifetimeService() |
Bu örnek için ömür ilkesini denetleyen geçerli ömür hizmeti nesnesini alır.Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Devralındığı yer: MarshalByRefObject) |
GetType() |
TypeGeçerli örneği alır.Gets the Type of the current instance. (Devralındığı yer: Object) |
IndexOf(Object) |
Koleksiyonun içinde olan belirtilen konumunu alır Object DataColumnMapping .Gets the location of the specified Object that is a DataColumnMapping within the collection. |
IndexOf(String) |
DataColumnMappingBelirtilen kaynak sütun adı ile konumunu alır.Gets the location of the DataColumnMapping with the specified source column name. |
IndexOfDataSetColumn(String) |
DataColumnMappingVerilen sütun adıyla belirtilen konumunu alır DataSet .Gets the location of the specified DataColumnMapping with the given DataSet column name. |
InitializeLifetimeService() |
Bu örnek için ömür ilkesini denetlemek üzere bir ömür hizmeti nesnesi alır.Obtains a lifetime service object to control the lifetime policy for this instance. (Devralındığı yer: MarshalByRefObject) |
Insert(Int32, DataColumnMapping) |
DataColumnMappingBelirtilen dizindeki içine bir nesne ekler DataColumnMappingCollection .Inserts a DataColumnMapping object into the DataColumnMappingCollection at the specified index. |
Insert(Int32, Object) |
DataColumnMappingBelirtilen dizindeki içine bir nesne ekler DataColumnMappingCollection .Inserts a DataColumnMapping object into the DataColumnMappingCollection at the specified index. |
MemberwiseClone() |
Geçerli bir basit kopyasını oluşturur Object .Creates a shallow copy of the current Object. (Devralındığı yer: Object) |
MemberwiseClone(Boolean) |
Geçerli nesnenin basit bir kopyasını oluşturur MarshalByRefObject .Creates a shallow copy of the current MarshalByRefObject object. (Devralındığı yer: MarshalByRefObject) |
Remove(DataColumnMapping) |
Belirtilen koleksiyondan kaldırır DataColumnMapping .Removes the specified DataColumnMapping from the collection. |
Remove(Object) |
, Object Koleksiyonundan bir olan öğesini kaldırır DataColumnMapping .Removes the Object that is a DataColumnMapping from the collection. |
RemoveAt(Int32) |
DataColumnMappingKoleksiyondan belirtilen dizine sahip nesneyi kaldırır.Removes the DataColumnMapping object with the specified index from the collection. |
RemoveAt(String) |
DataColumnMappingBelirtilen kaynak sütun adına sahip nesneyi koleksiyondan kaldırır.Removes the DataColumnMapping object with the specified source column name from the collection. |
ToString() |
Geçerli nesneyi temsil eden dizeyi döndürür.Returns a string that represents the current object. (Devralındığı yer: Object) |
Belirtik Arabirim Kullanımları
ICollection.IsSynchronized |
Erişiminin ICollection eşitlenip eşitlenmediğini (iş parçacığı güvenli) gösteren bir değer alır.Gets a value that indicates whether access to the ICollection is synchronized (thread safe). |
ICollection.SyncRoot |
Erişimini eşitlemede kullanılabilecek bir nesne alır ICollection .Gets an object that can be used to synchronize access to the ICollection. |
IColumnMappingCollection.Add(String, String) |
DataColumnMapping DataColumnMappingCollection Kaynak sütun ve sütun adlarını kullanarak öğesine bir nesnesi ekler DataSet .Adds a DataColumnMapping object to the DataColumnMappingCollection by using the source column and DataSet column names. |
IColumnMappingCollection.GetByDataSetColumn(String) |
DataColumnMappingBelirtilen sütun adına sahip nesneyi alır DataSet .Gets the DataColumnMapping object that has the specified DataSet column name. |
IColumnMappingCollection.Item[String] |
IColumnMappingBelirtilen ada sahip nesneyi alır veya ayarlar |
IList.IsFixedSize |
Değerinin sabit boyutta olup olmadığını gösteren bir değer alır IList .Gets a value that indicates whether the IList has a fixed size. |
IList.IsReadOnly |
Salt okunurdur olduğunu gösteren bir değer alır IList .Gets a value that indicates whether the IList is read-only. |
IList.Item[Int32] |
Belirtilen dizindeki öğeyi alır veya ayarlar.Gets or sets the element at the specified index. |
Uzantı Metotları
Cast<TResult>(IEnumerable) |
Öğesinin öğelerini IEnumerable belirtilen türe yayınlar.Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Öğesinin öğelerini IEnumerable belirtilen bir türe göre filtreler.Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Bir sorgunun paralelleştirilmesini mümkün hale getirme.Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Bir IEnumerable öğesine dönüştürür IQueryable .Converts an IEnumerable to an IQueryable. |