Salesforce

DNRef (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

DNRef (Magic xpa 4.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.

Exceptions:

This function is not supported in Web Client tasks.

Platform specific:

This function is not supported for mobile devices.

Reference
Attachment 
Attachment