Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine A Registry Value's Type
Message
De
11/07/2009 12:16:13
 
 
À
11/07/2009 11:59:52
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01410985
Message ID:
01411608
Vues:
27
>But Viv, I think that only answers part of Kevin's question. What do you do with it after that? IOW, you have this code:
>
>
>            RegistryValueKind kind = x.GetValueKind("Update Status");
>            Object o = x.GetValue("Update Status");
>
>
>Kevin doesn't want to use an Object o, he wanted to be able to cast the object returned from x.GetValue() to the proper type ... which, I'm assuming from your reply, has something to do with the RegistryValueKind kind. But the question is: what do you do with kind?
>
>~~Bonnie

Bonnie,

It answers the question - there was only one statement missing to make it clear
Console.WriteLine("{0}", kind); 
RegistryValueKind is an enum

see (at the bottom the enum and an example) http://msdn.microsoft.com/en-us/library/microsoft.win32.registryvaluekind.aspx
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform