Salesforce

DNRef (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

DNRef (Magic xpa 3.x)

Returns a reference to the variable, so it can be passed "by reference" to a .NET method.

This function declares a parameter as a reference, so when a method needs to receive a reference to an object, you can strictly define it.

Syntax:

DNRef (variable)

Parameters:

variable: The .NET object

Returns:

The reference to a .NET object.

Example:

DotNet.MyClass.MyMethod(DNRef(A))

In this case, 'A' is sent by ref to MyMethod and any modification MyMethod applies to the object defined in variable 'A' will be reflected by 'A' after returning from the method call.

Platform specific:

This function is not supported for mobile devices.

Reference
Attachment 
Attachment