Z
zlf
I am asked to complete a COM+ component, there is a class A derived from
ServicedComponent.
However, when executing [new A("TEST");], exception is thrown.
Messaged:
Unhandled Exception:
System.EnterpriseServices.ServicedComponentException:
Classes derived from ServicedComponent do not support constructors
with arguments
class A:ServicedComponent
{
public A(){};
public A(string name){};
}
new A("TEST");
Please tell me how to make class derived from ServicedComponent support
constructors with arguments.
Thank you.
zlf
ServicedComponent.
However, when executing [new A("TEST");], exception is thrown.
Messaged:
Unhandled Exception:
System.EnterpriseServices.ServicedComponentException:
Classes derived from ServicedComponent do not support constructors
with arguments
class A:ServicedComponent
{
public A(){};
public A(string name){};
}
new A("TEST");
Please tell me how to make class derived from ServicedComponent support
constructors with arguments.
Thank you.
zlf