Click or drag to resize

MimeTypesHelperGetWriterByFileExtension Method (String, String)

Selects a IRdfWriter based on the file extension.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static IRdfWriter GetWriterByFileExtension(
	string fileExt,
	out string contentType
)

Parameters

fileExt
Type: SystemString
File Extension.
contentType
Type: SystemString
Content Type of the chosen writer.

Return Value

Type: IRdfWriter

[Missing <returns> documentation for "M:VDS.RDF.MimeTypesHelper.GetWriterByFileExtension(System.String,System.String@)"]

Exceptions
ExceptionCondition
RdfWriterSelectionExceptionThrown if no writers are associated with the given file extension.
Remarks

Global options pertaining to writers will be applied to the selected writer.

See Also