M-Files API 22.6.11519.0
SetFileValueExpression Method
Expression Object : SetFileValueExpression Method

A file value type identifies the evaluated file feature. Flags cannot be combined. Use only one single value at a time.

Description
Sets the FileValue expression.
Syntax
Visual Basic
Public Sub SetFileValueExpression( _
   ByVal FileValueType As MFFileValueType _
) 
Parameters
FileValueType
ValueDescription
MFFileValueTypeChangeTimeThe file’s change time.
MFFileValueTypeCreationTimeThe file’s creation time.
MFFileValueTypeDuplicatesOnlySpecifies whether the object has one or more duplicates.
MFFileValueTypeFileIDFile ID.
MFFileValueTypeFileNameFile name (title + extension), can include DOS wildcards (such as *.txt).
MFFileValueTypeFileSizeFile size in bytes.
MFFileValueTypeHasFilesSpecifies whether the object contains one or more files.
MFFileValueTypeLinkedToExtLocSpecifies whether the file is linked to an external location (Yes/No).
MFFileValueTypeLinkedToExtLocIDThe ID of the external location to which the file is linked. NULL if not linked.

A file value type identifies the evaluated file feature. Flags cannot be combined. Use only one single value at a time.

Remarks

A file value expression is used to define a condition based on the file features of the object.

The target value (the right-hand operand) is placed in the TypedValue object encapsulated in the parent SearchCondition object. The expected type of this value depends on the file value type.

 

Right-Hand Operand Types for File Value Types

File Value Type

Expected Typed Value Data Type Remarks

MFFileValueTypeHasFiles

MFDatatypeBoolean  

MFFileValueTypeFileName

MFDatatypeText  

MFFileValueTypeFileSize

MFDatatypeInteger64 File size in bytes.

MFFileValueTypeFileID

MFDatatypeInteger  

MFFileValueTypeCreationTime

MFDatatypeFILETIME The data type is currently not supported by the API.

MFFileValueTypeChangeTime

MFDatatypeTimestamp  

MFFileValueTypeLinkedToExtLoc

MFDatatypeBoolean  

MFFileValueTypeLinkedToExtLocID

MFDatatypeLookup Links to an external location with an external location ID.

 

 

 

File value conditions (highlighted with the green rectangle) as seen in M-Files Desktop. Note that most of the condition settings in the user interface actually consist of multiple search conditions, such as file size and date limits.

See Also

Expression Object  | Expression Members