Table of Contents

Method SetContentType

Namespace
MongoDB.Driver.GridFS
Assembly
MongoDB.Driver.Legacy.dll

SetContentType(MongoGridFSFileInfo, string)

Sets the content type for an existing GridFS file.

public void SetContentType(MongoGridFSFileInfo fileInfo, string contentType)

Parameters

fileInfo MongoGridFSFileInfo

The GridFS file.

contentType string

The content type.