Salesforce

Loading the Assembly (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Loading the Assembly (Magic xpa 4.x)

To start working with .NET, you need to load the assemblies that you will use.

You load assemblies in the Composite Resource Repository (CRR).

You first need to figure out which assembly you should refer to.

This information can most likely be found in the vendor's page or using Google.

For example, the ‘PivotArea’ enumeration in DevXpress (referred in http://documentation.devexpress.com/#WindowsForms/CustomDocument1921) can be found in the DevExpress.PivotGrid.v11.1.Core.dll assembly (as specified in http://documentation.devexpress.com/#CoreLibraries/DevExpressXtraPivotGridPivotAreaEnumtopic).

Two of the most useful assemblies are:

  • System.Windows.Forms, which contains Windows forms, controls and dialog boxes that you can use in your applications. If you want to use a 3rd party .NET component, you must have this assembly loaded.

  • System.Drawing, which contains basic Windows graphics.

Once a .NET assembly is loaded, all of its classes and methods are available for use in the Magic xpa Studio.

Assemblies defined in a Magic xpa component will not be available at the host project. This means that if the component exposes a model or a program parameter of a .NET type, you have to add a reference to this assembly as well.

Reference
Attachment 
Attachment