M-Files API 23.11.13135.0
GetTextContentForFileEx Method
VaultObjectFileOperations Object : GetTextContentForFileEx Method
The ID of the object containing the file.
The file version to get the text content from.
The option flags.
Description
Gets the plain text content of a file in the vault.
Syntax
Visual Basic
Public Function GetTextContentForFileEx( _
   ByVal ObjID As ObjID, _
   ByVal FileVer As FileVer, _
   ByVal OptionFlags As MFTextContentExtractionFlags _
) As String
Parameters
ObjID
The ID of the object containing the file.
FileVer
The file version to get the text content from.
OptionFlags
ValueDescription
MFTextContentExtractionFlagsNoneNone.
MFTextContentExtractionFlagsUnpackContainersSpecifies whether a container object should be unpacked for content extraction.
MFTextContentExtractionFlagsUsePlainTextCacheUse plain text cache. This makes other options, such as "UnpackContainers" ineffective. The operation returns the text content with global defaults in same way it is returned for e.g. search indexing.
The option flags.
Remarks
Requires M-Files 18.10.6895.1 or later.
See Also

VaultObjectFileOperations Object  | VaultObjectFileOperations Members