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 |