rcook349

When I create an overloaded function in my service project, it won't generate the proxy class. It seems to do it (I don't get any errors) but then the class just isn't created. What's up with that

Am I now allows to create two functions by the same name in my service project

Thanks,

Ron




Re: Windows Communication Foundation (Indigo) Why can't I create an overload function?

Brian McNamara - MSFT

Can you try differentiating the two by change the OperationContractAttribute.Name of one of the operations e.g.

[OperationContract(Name="Foo2")] void Foo(int otherOverload);






Re: Windows Communication Foundation (Indigo) Why can't I create an overload function?

rcook349

Thanks. Could I possibly get that in VB The below says Name is not declared:

<OperationContract(Name = "Foo2")> _

Function Foo(ByVal otherOverload As Int32) As DataSet

Thanks again.






Re: Windows Communication Foundation (Indigo) Why can't I create an overload function?

Brian McNamara - MSFT

I think maybe

<OperationContract([Name]:="Foo2")>