M-Files API 23.11.13135.0
VaultValueListItemOperations Object
Members 
Description
The VaultValueListItemOperations class represents the available value list item operations.
Public Methods
Adds a new value list item to a value list.
Changes the automatic permissions for the specified value list item. The specified automatic permissions will be applied to an object when the user selects this value list item in the metadata card of the object.
Changes the automatic permissions for the specified value list item.
Changes the automatic permissions for the specified value list item to match those of its own permissions. The specified automatic permissions will be applied to an object when the user selects this value list item in the metadata card of the object.
Changes the automatic permissions for the specified value list item to match those of its own permissions.
Changes the automatic permissions for the specified value list item. The specified automatic permissions will be applied to an object when the user selects this value list item in the metadata card of the object.
Changes the automatic permissions for the specified value list item.
Changes the permissions for the specified value list item.
Changes the permissions for the specified value list item.
Changes the permissions for the specified value list item.
Changes the permissions for the specified value list item.
Clears the automatic permissions from the specified value list item. This prevents any permissions from being set to an object as a result of this value list item being selected.
Clears the automatic permissions of the specified value list item.
Gets value list items that are referenced by one or more documents (possibly limiting the set of documents with conditions) in ID order.
Gets a value list item from the specified value list, using the display ID (external ID) of the item.
Gets a value list item from the specified value list, using the display ID (external ID) of the item.
Gets a value list item from the specified value list by using the GUID of the item.
Gets a value list item from the specified value list, using the internal ID of the item.
Gets a value list item from the specified value list, using the internal ID of the item.
Gets a value list item from the specified value list, using the internal ID of the item.
Gets the ID of the value list item with the specified GUID. Returns -1 if a match is not found.
Gets the value list items of a value list.
Gets the value list items of a value list.
Gets the value list items of a value list.
Gets the items of a value list ordered by ID.
Gets the value list items of a value list.
Deletes a value list item.
Deletes a value list item.
Searches for value list items in the specified value list
Searches for value list items in the specified value list
Searches for value list items in the specified value list
Undeletes a previously deleted value list item.
Undeletes a previously deleted value list item.
Updates the value list item.
Remarks
This method group interface can be accessed via the Vault object.
Example
' Set the search conditions for the value list item.
Dim oScValueListItem As New MFilesAPI.SearchCondition
oScValueListItem.Expression.SetValueListItemExpression( _
        MFilesAPI.MFValueListItemPropertyDef.MFValueListItemPropertyDefID, _
        MFilesAPI.MFParentChildBehavior.MFParentChildBehaviorNone)
oScValueListItem.ConditionType = MFilesAPI.MFConditionType.MFConditionTypeEqual
oScValueListItem.TypedValue.SetValue(MFilesAPI.MFDataType.MFDatatypeLookup, iItem)
Dim arrSearchConditions As New MFilesAPI.SearchConditions
arrSearchConditions.Add(-1, oScValueListItem)

' Search for the value list item.
Dim oResults As MFilesAPI.ValueListItemSearchResults = _
    GetVault().ValueListItemOperations.SearchForValueListItemsEx(iValueList, arrSearchConditions)
If oResults.Count > 0 Then

    ' Items found.
    ' ...

Else

    ' Items not found.
    ' ...

End If
See Also

VaultValueListItemOperations Members