PartExtensionProvider.MakeSurePartExtensionExist Method
Make sure the (contentType, partExtension) is in the provider. The (contentType, partExtension) will be added to the provider if it does not exist in the provider.
Namespace: DocumentFormat.OpenXml.Packaging
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Sub MakeSurePartExtensionExist ( _
contentType As String, _
partExtension As String _
)
'Usage
Dim instance As PartExtensionProvider
Dim contentType As String
Dim partExtension As String
instance.MakeSurePartExtensionExist(contentType, _
partExtension)
public void MakeSurePartExtensionExist(
string contentType,
string partExtension
)
Parameters
- contentType
Type: System.String
ContentType
- partExtension
Type: System.String
Part Extension (".xml") to be used for the part with the specified content type.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when either parameter is null. |