Class FunctionAPI
Last update: 09.03.2026Namespace: VM.API.Pre
Assembly: VM.API.Pre.dll
This class implements APIs for
public static class FunctionAPI
Inheritance
object ← FunctionAPI
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Methods
CreateFunction(SubSystemDocument, string, IEnumerable<(string, Obj)>, string, SymmetricType, bool)
Create
[NotNull(new string[] { "document" })]
[NotNullOrEmpty(new string[] { "expression" })]
public static Obj CreateFunction(this SubSystemDocument document, string expression, IEnumerable<(string, Obj)> arguments = null, string name = "", SymmetricType symmetricType = SymmetricType.None, bool isInterface = false)
Parameters
document SubSystemDocument
The document to create a function.
expression string
The expression of a function.
arguments IEnumerable<(string, Obj)>
The arguments of a function.
name string
The name of a function.
symmetricType SymmetricType
The symmetric type of the new
isInterface bool
'true' if it is interface body. Otherwise, 'false'.
Returns
The new
Exceptions
ArgumentNullException
Will be thrown if 'document', 'expression' argument is null.
ArgumentException
Will be thrown if the second element of 'arguments' is not