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
)
Function SaveDoc (
cxt As IAppContext,
path As String,
pk As String,
name As String,
mimeType As String,
docType As String,
desc As String,
docId As String,
opts As DocStorageOptions
) As String
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:
StringThe document ID in the repository.
See Also