Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

What is the best Way to call a .Net Function with a return

What is the best Way to call a .Net Function with a return

What is the best Way to call a .Net Function with a return

Could somebody please help me? I need to call a vb.net function that does some specific tasks for my organization. The class returns a boolean indicating the result condition of the function. Is there a way (1) to call this dll and reutrn a result (in an expression?) plus have Biztalk wait for the result and procede into a decision with the result variable?

Thanks in advance for your help.

RE: What is the best Way to call a .Net Function with a return

Are we Talking BTS 2004 here?
If so,

its easy.

1. Reference the Assembly to your Project (Add Reference)
if your function is not static, declare a varibale in your Orchestation ans select as datatype your class.
if it is a static function there is no need in declaring an extra variable just go to step 3
3. In your expression shape wtite something like this:

myBool = myClass.myFunction();

Then you can just use your myBool var in your next decission shape.

Thats it,.........

BTW: maybe you should check out the Microsoft Tutorials on BizTalk that show you every step on how to perform tasks like this in BizTalk.
Heres a link:


Hope that helps,


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close