A file value type identifies the evaluated file feature. Flags cannot be combined. Use only one single value at a time.
Visual Basic |
---|
Public Sub SetFileValueExpression( _ ByVal FileValueType As MFFileValueType _ ) |
Value | Description |
---|---|
MFFileValueTypeChangeTime | The file’s change time. |
MFFileValueTypeCreationTime | The file’s creation time. |
MFFileValueTypeDuplicatesOnly | Specifies whether the object has one or more duplicates. |
MFFileValueTypeFileID | File ID. |
MFFileValueTypeFileName | File name (title + extension), can include DOS wildcards (such as *.txt). |
MFFileValueTypeFileSize | File size in bytes. |
MFFileValueTypeHasFiles | Specifies whether the object contains one or more files. |
MFFileValueTypeLinkedToExtLoc | Specifies whether the file is linked to an external location (Yes/No). |
MFFileValueTypeLinkedToExtLocID | The 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.
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.