Click or drag to resize

IDocStorageServiceSaveDoc Method (IAppContext, String, String, String, String, String, String, String, DocStorageOptions)

Save a document to the document storage repository.

Namespace:  NetQuarry.Services
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
string SaveDoc(
	IAppContext cxt,
	string path,
	string pk,
	string name,
	string mimeType,
	string docType,
	string desc,
	string docId,
	DocStorageOptions opts
)

Parameters

cxt
Type: NetQuarryIAppContext
The application context.
path
Type: SystemString
The path to the file to save.
pk
Type: SystemString
The primary key to the owning record in the originating mapper.
name
Type: SystemString
The "pretty" name of the file.
mimeType
Type: SystemString
The document MIME content type (e.g. "image/gif").
docType
Type: SystemString
The application-specific document type.
desc
Type: SystemString
The document description.
docId
Type: SystemString
The ID of the existing document that this document should replace if it exists.
opts
Type: NetQuarry.ServicesDocStorageOptions
Options regarding the document save.

Return Value

Type: String
The document ID in the repository.
See Also