FieldMappingDictionary Class
Represents a dictionary that is used in MailMerge when Fields and data source columns have different names.
public sealed class FieldMappingDictionary : DictionaryBase<String, String>, IDictionary<String, String>, ICollection<KeyValuePair<String, String>>, IEnumerable<KeyValuePair<String, String>>, IEnumerable
Public NotInheritable Class FieldMappingDictionary
Inherits DictionaryBase(Of String, String)
Implements IDictionary(Of String, String), ICollection(Of KeyValuePair(Of String, String)), IEnumerable(Of KeyValuePair(Of String, String)), IEnumerable
- Inheritance:
- System.ObjectFieldMappingDictionary
Implements
System.Collections.Generic.IDictionary<System.String, System.String>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.String>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.String>>
System.Collections.IEnumerable
Remarks
Keys and values cannot be null or System.String.Empty.
Key comparison is case-insensitive.
Methods
Add(String, String)
Adds a new mapping from field name to data source column name.
public void Add(string fieldName, string valueName)
Public Sub Add(fieldName As String, valueName As String)
Parameters
fieldName
- System.String
The field name.
valueName
- System.String
The data source column name.
Implements
System.Collections.Generic.IDictionary<TKey, TValue>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable