DocumentSettingsPart.AddMailMergeRecipientDataPart Method (MailMergeRecipientDataPartType, String)
Adds a MailMergeRecipientDataPart to the DocumentSettingsPart.
Namespace: DocumentFormat.OpenXml.Packaging
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Function AddMailMergeRecipientDataPart ( _
partType As MailMergeRecipientDataPartType, _
id As String _
) As MailMergeRecipientDataPart
'Usage
Dim instance As DocumentSettingsPart
Dim partType As MailMergeRecipientDataPartType
Dim id As String
Dim returnValue As MailMergeRecipientDataPart
returnValue = instance.AddMailMergeRecipientDataPart(partType, _
id)
public MailMergeRecipientDataPart AddMailMergeRecipientDataPart(
MailMergeRecipientDataPartType partType,
string id
)
Parameters
- partType
Type: DocumentFormat.OpenXml.Packaging.MailMergeRecipientDataPartType
The part type of the MailMergeRecipientDataPart.
- id
Type: System.String
The relationship id.
Return Value
Type: DocumentFormat.OpenXml.Packaging.MailMergeRecipientDataPart
The newly added part.