How can I access/call functions in .Net classes?

As per the ColdFusion documentation, the <cfobject> tag can be used to access and use .Net classes inside of your CFML code.

<cfobject
   type = ".NET"
   name = "myInstance"
   class = "myDotNetClass"
   assembly = "C:/Net/Assemblies/dotNetClass.dll"> 
<!--- Call a method--->
<cfset myVar = myInstance.myDotNetClass(5)> 

This question was written by Jeremy Petersen
It was last updated on December 19, 2007.

Categories

Miscellaneous

Comments

comments powered by Disqus