Click here to Skip to main content
15,924,553 members
Home / Discussions / C#
   

C#

 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 8:53
Le centriste31-May-07 8:53 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 9:03
mveDave Kreskowiak31-May-07 9:03 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 9:06
Le centriste31-May-07 9:06 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 9:18
mveDave Kreskowiak31-May-07 9:18 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 9:23
Le centriste31-May-07 9:23 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 9:32
mveDave Kreskowiak31-May-07 9:32 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 9:42
Le centriste31-May-07 9:42 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 10:19
mveDave Kreskowiak31-May-07 10:19 
Le Centriste wrote:
It is too complicated, you would have to go through many pages, in many assemblies.


Le Centriste wrote:
I have signed an NDA which prevents me giving you complete code, or I can get sued.


No, I wouldn't. I'm not asking for the complete code! Just the snippets that define the bloody objects involved!

How do I know the object class you wrote is decorated properly? I don't, and apparently, I can't find out. How do I know that the class exposes the WMI properties AS properties and not just public fields?? I don't, and again, I can't find out.


Le Centriste wrote:
I create a ManagementScope object and connect it. (this object is reused, is this the problem?)


Nope. Scopes can be reused over and over. So can Searchers.


Le Centriste wrote:
I perform a search and get a ManagementBaseObject from it


No, you don't. ManagementObjectSearcher.Get() returns a ManagementObjectCollection.


Le Centriste wrote:
You know, if somebody would ask me "I am adding a row in a DataSet but it is not reflected in the database, what is wrong?" I wouldn't need the complete code from him to figure out that he did not save the DataSet.


For the 3rd time, I never asked you for the complete code!


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 10:34
Le centriste31-May-07 10:34 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 10:24
mveDave Kreskowiak31-May-07 10:24 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 10:38
Le centriste31-May-07 10:38 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 13:04
mveDave Kreskowiak31-May-07 13:04 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 13:29
Le centriste31-May-07 13:29 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 13:39
mveDave Kreskowiak31-May-07 13:39 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 13:42
Le centriste31-May-07 13:42 
GeneralI think I found the problem Pin
Le centriste31-May-07 13:41
Le centriste31-May-07 13:41 
GeneralRe: I think I found the problem Pin
Dave Kreskowiak31-May-07 17:22
mveDave Kreskowiak31-May-07 17:22 
GeneralRe: I think I found the problem Pin
Le centriste1-Jun-07 0:45
Le centriste1-Jun-07 0:45 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Luc Pattyn31-May-07 11:00
sitebuilderLuc Pattyn31-May-07 11:00 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 13:43
Le centriste31-May-07 13:43 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Luc Pattyn31-May-07 16:03
sitebuilderLuc Pattyn31-May-07 16:03 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste1-Jun-07 2:43
Le centriste1-Jun-07 2:43 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Luc Pattyn1-Jun-07 2:53
sitebuilderLuc Pattyn1-Jun-07 2:53 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste1-Jun-07 3:07
Le centriste1-Jun-07 3:07 
QuestionMime Types Pin
hadad31-May-07 7:04
hadad31-May-07 7:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.