Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for existence
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00924170
Message ID:
00924930
Vues:
8
Thanks Rob. It worked great. I ended up using the MethodInfo instead but the consept is the same.
Again thank you.

Einar
>You need to use Reflection. Here's an example that checks for properties of a Button control.
>
>
>using System.Reflection;
>...
>PropertyInfo pi;
>pi = button1.GetType().GetProperty("Text");
>MessageBox.Show(pi == null ? "Property does not exist." : "Property exists.");
>pi = button1.GetType().GetProperty("Foo");
>MessageBox.Show(pi == null ? "Property does not exist." : "Property exists.");
>
Semper ubi sub ubi.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform