MFIdentifierResolveID Method

Resolves the id of a vault element by reference.

Definition

Namespace: MFiles.VAF.Configuration
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public static int ResolveID(
	Vault vault,
	Type type,
	Object reference
)

Parameters

vault  Vault
The vault in which the element is defined.
type  Type
M-Files API type of the element to resolve.
reference  Object
Identifier can be: - int (ID of the element) - string (GUID, ID or Alias of the element) - GUID (GUID of the element) - enum (ID of the element)

Return Value

Int32
The id of the element, the int value of the reference, or -1 if reference not resolved.

See Also