Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return .f. in Init Fox Equivalent
Message
De
11/01/2006 22:07:22
Scott Butts
Ims Specialty Services
Twin Falls, Idaho, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01085894
Message ID:
01085938
Vues:
15
That is just what I need to know. Thanks to both you and Hilmar.

I am creating a class that will be used for Word automation, If Word isn't installed or
it is an older version I want to message the user and not create the object. Is there another way that this
should be handled in .Net (I am a newbie).

Thanks Again
Scott

>Scott,
>That is what I thought but I wasn't 100% sure.
>
>Throwing an exception from within the constructor will cause the object not to be instantiated.
>
>throw new Exception("I don't want this object to be instantiated.");
>
>
>If you explain a little further what you want then we might be able to find more ways to skin the cat.
>
>Einar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform