Share via


OpenXmlPartContainer.AddNewPart Generic Method (String, String) (Microsoft.Office.DocumentFormat.OpenXml.Packaging)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Namespace: Microsoft.Office.DocumentFormat.OpenXml.Packaging
Assembly: Microsoft.Office.DocumentFormat.OpenXml (in microsoft.office.documentformat.openxml.dll)

Syntax

'Declaration
Public Function AddNewPart(Of T As OpenXmlPart) ( _
    contentType As String, _
    id As String _
) As T
'Usage
Dim instance As OpenXmlPartContainer
Dim contentType As String
Dim id As String
Dim returnValue As T

returnValue = instance.AddNewPart(contentType, id)
public T AddNewPart<T> (
    string contentType,
    string id
) where T : OpenXmlPart

Parameters

  • contentType
  • id

See Also

Reference

OpenXmlPartContainer Class
OpenXmlPartContainer Members
Microsoft.Office.DocumentFormat.OpenXml.Packaging Namespace