Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return .f. in Init Fox Equivalent
Message
From
11/01/2006 22:07:22
Scott Butts
Ims Specialty Services
Twin Falls, Idaho, United States
 
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
01085894
Message ID:
01085938
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform