Version

CreatePart Method (IPackage)

Creates a new uncompressed part with a given URI and content type.
Syntax
'Declaration
 
Function CreatePart( _
   ByVal partUri As System.Uri, _
   ByVal contentType As System.String _
) As IPackagePart
IPackagePart CreatePart( 
   System.Uri partUri,
   System.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 8.1, Windows 8.1, Windows 8, Windows 7, 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

View on GitHub