Version

CreatePart Method

Creates a new uncompressed part with a given URI and content type.
Syntax
'Declaration
 
Function CreatePart( _
   ByVal partUri As Uri, _
   ByVal contentType As String _
) As IPackagePart
IPackagePart CreatePart( 
   Uri partUri,
   string contentType
)

Parameters

partUri
The uniform resource identifier (URI) of the new part.
contentType
The content type of the data stream.

Return Value

The new created part.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also