DocumentSettingsPart.AddMailMergeRecipientDataPart Method (String)

Adds a MailMergeRecipientDataPart to the DocumentSettingsPart.

Namespace:  DocumentFormat.OpenXml.Packaging
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Function AddMailMergeRecipientDataPart ( _
    contentType As String _
) As MailMergeRecipientDataPart
'Usage
Dim instance As DocumentSettingsPart
Dim contentType As String
Dim returnValue As MailMergeRecipientDataPart

returnValue = instance.AddMailMergeRecipientDataPart(contentType)
public MailMergeRecipientDataPart AddMailMergeRecipientDataPart(
    string contentType
)

Parameters

  • contentType
    Type: System.String
    the content type of the MailMergeRecipientDataPart.

Return Value

Type: DocumentFormat.OpenXml.Packaging.MailMergeRecipientDataPart
The newly added part.

See Also

Reference

DocumentSettingsPart Class

DocumentSettingsPart Members

AddMailMergeRecipientDataPart Overload

DocumentFormat.OpenXml.Packaging Namespace