HighTechTalks DotNet Forums  

Using an enumeration as a parameter to serviced component method

Dotnet Framework (Component Services) microsoft.public.dotnet.framework.component_services


Discuss Using an enumeration as a parameter to serviced component method in the Dotnet Framework (Component Services) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Marc Nemegeer
 
Posts: n/a

Default Using an enumeration as a parameter to serviced component method - 03-24-2005 , 12:45 PM






Hi,
I'm puzzled by the following and not able to solve it ...

I have a class test with one method execute which is shown in the following
code snippet:
<Transaction(TransactionOption.Disabled),
ClassInterface(ClassInterfaceType.AutoDual)>
Public Class Test
Inherits ServicedComponent

Public Sub myMethod(ByVal command as String, Byval commandType as
System.Data.CommandType)
End Sub
End Class

It compiles, registers in the gac but when trying to regsvcs to assembly I
receive an error: Non COM visible value type System.Data.CommandType is
being referenced either from the type currently being exported or from one
of its base types ...

Any ideas on how to solve this ??

Regards,
Marc




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.