Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Implementing IDisposable in a class
Message
 
To
14/02/2014 12:09:19
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01594093
Message ID:
01594322
Views:
35
I hate to insist, but according to http://msdn.microsoft.com/en-us/library/htd05whh.aspx

you use "as" and not "=" in using.

I think your problem is that you assign a member of an object in using; It should be an untyped local variable. Using end using is implemented as a block. You might assign the member within the using block, and pass it as parameters.



>>Shouldn't you be doing "as" i.o. "=" ? (This is VB!)
>>
>>
>>Using loSOAPSVC.oOperationContextScope as New System.ServiceModel.OperationContextScope(loMyService.InnerChannel)
>>
>>
>>?
>
>This is not a valid syntax.

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform