ExtensionMethodsResolveID Method (Vault, Type, Object) |
Resolves the id of a vault element by reference.
Namespace:
MFiles.VAF.Common
Assembly:
MFiles.VAF (in MFiles.VAF.dll) Version: 2.3.623.2
Syntaxpublic static int ResolveID(
this Vault vault,
Type type,
Object reference
)
<ExtensionAttribute>
Public Shared Function ResolveID (
vault As Vault,
type As Type,
reference As Object
) As Integer
public:
[ExtensionAttribute]
static int ResolveID(
Vault^ vault,
Type^ type,
Object^ reference
)
Parameters
- vault
- Type: Vault
The vault in which the element is defined. - type
- Type: SystemType
M-Files API type of the element to resolve. - reference
- Type: SystemObject
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
Type:
Int32The id of the element, the int value of the reference, or -1 if reference not resolved.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Vault. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also