M-Files API 23.11.13135.0
VaultViewOperations Object
Members 
Description
The VaultViewOperations class represents the available view operations.
Public Methods
Adds a new offline filter. Returns the added filter view.
Adds a temporary search view. Returns the added view.
Adds a new view. Returns the added view.
Gets the locations of a property folder in a view.
Gets a built-in view.
Gets the specified folder in the vault.
Gets the contents of the specified folder.
Gets the folder names inside a folder specified by the property conditions.
Retrieves the UI settings of a specified folder.
Retrieves the UI settings of a specified folder.
Gets the external repository icon in PNG format.
For the specified view, gets a link to a web page that is used to open the item in the preferred M-Files client.
Gets an M-Files URL for a view.
Extracts as many property values from the given folder location as possible for the purposes of prefilling metadata when creating new objects of the specified type. May return zero or more property values.
Extracts as many property values from the given path string as possible for the purposes of prefilling metadata when creating new objects of the specified type. May return zero or more property values. Does not fail if the path no longer exists.
Gets information on the temporary search view specified by the path.
Gets information on the specified temporary search view.
Gets the specified view in the vault.
Gets the ID of the metadata structure element with the specified GUID. Returns -1 if a match is not found.
Gets the view locations.
Gets all views of the vault.
Gets the common views and/or views for a specific user.
Modifies the temporary search view.
Deletes the specified view.
Requests the client cache refresh for a directory structure.
Resets the UI settings of a specified folder to program defaults or common defaults.
Resets the UI settings of a specified folder to program defaults or common defaults.
Saves the UI settings of a specified folder.
Saves the UI settings of a specified folder.
Sets the visibility of a view for the user in the default listing of the view.
Shows the given view or property folder.
Updates the specified view. Returns the updated view.
Remarks
This method group interface can be accessed via the Vault object.
Example
' Construct view object.
Dim oView As New MFilesAPI.View
oView.Common = True
oView.Name = "Test View"
oView.ViewType = MFilesAPI.MFViewType.MFViewTypeNormal

' Create search conditions for the view: object status is not deleted
Dim oExpression As New MFilesAPI.Expression
oExpression.SetStatusValueExpression(MFilesAPI.MFStatusType.MFStatusTypeDeleted)
Dim oTypedValue As New MFilesAPI.TypedValue
oTypedValue.SetValue(MFilesAPI.MFDataType.MFDatatypeBoolean, False)
Dim oDeleted As New MFilesAPI.SearchCondition
oDeleted.ConditionType = MFilesAPI.MFConditionType.MFConditionTypeEqual
oDeleted.Set(expression, MFilesAPI.MFConditionType.MFConditionTypeEqual, oTypedValue)
oView.SearchConditions.Add(-1, oDeleted)

' Add the view to client.
oView = oVault.ViewOperations.AddView(oView)
See Also

VaultViewOperations Members