Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Implementing IDisposable in a class
Message
 
À
14/02/2014 12:09:19
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01594093
Message ID:
01594322
Vues:
34
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform