Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting the creation of an object
Message
De
24/02/2004 15:40:16
 
 
À
24/02/2004 15:34:32
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00880446
Message ID:
00880450
Vues:
27
Can't you just test if loContext is nothing?

~~Bonnie


>I have the following code:
>
>
>      ' Get the SoapContext for the response message
>      Dim loContext As SoapContext
>      loContext = HttpSoapContext.ResponseContext
>
>
>This doesn't generate any error. However, below in the code, as soon as I make reference to loContext, I get an error that the object reference is not set. How can I detect if the 2nd line here is a success? Or, can someone point me to where the problem is?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform