CreateSerializedDocumentsDataStorage(String) Method (VintasoftFileApiController)
In This Topic
Creates a data storage for serialized documents.
Syntax
'Declaration
Protected Overridable Function CreateSerializedDocumentsDataStorage( _
ByVal As String _
) As Vintasoft.Data.IDataStorage
protected virtual Vintasoft.Data.IDataStorage CreateSerializedDocumentsDataStorage(
string
)
protected: virtual Vintasoft.Data.IDataStorage CreateSerializedDocumentsDataStorage(
string*
)
protected:
virtual Vintasoft.Data.IDataStorage CreateSerializedDocumentsDataStorage(
string^
)
Parameters
- sessionId
- The session identifier.
Return Value
The data storage.
Remarks
By default method creates the Vintasoft.Data.StreamDataStorage storage that works with directory "{Project_Path}/VintasoftCache[/{SessionID}]/SerializedDocuments".
If you want to create the Vintasoft.Data.StreamDataStorage in custom directory, set value of DataDirectoryDefaultPath property and method will create Vintasoft.Data.StreamDataStorage that works with directory "{WebServicesGlobalSettings.DataDirectoryDefaultPath}/VintasoftCache[/{SessionID}]/SerializedDocuments".
Important: If you want to implement custom logic of this method, make sure the method returns data storage that can work with System.IO.Stream objects.
Requirements
Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6
See Also