Version

CreatePart Method (Package)

Creates a new uncompressed part with a given URI and content type.
Syntax
public 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: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also