Click here to Skip to main content
15,898,373 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows Security check fails when it should not??!! Pin
LongRange.Shooter10-Nov-03 6:25
LongRange.Shooter10-Nov-03 6:25 
GeneralAbsolute beginner Pin
-=LoKi=-10-Nov-03 2:03
-=LoKi=-10-Nov-03 2:03 
GeneralRe: Absolute beginner Pin
Heath Stewart10-Nov-03 3:37
protectorHeath Stewart10-Nov-03 3:37 
GeneralRe: Absolute beginner Pin
-=LoKi=-11-Nov-03 2:37
-=LoKi=-11-Nov-03 2:37 
GeneralRe: Absolute beginner Pin
Heath Stewart11-Nov-03 3:04
protectorHeath Stewart11-Nov-03 3:04 
GeneralRe: Absolute beginner Pin
Husein22-Nov-03 0:19
Husein22-Nov-03 0:19 
GeneralIIsWebServer method calling problem Pin
itismydick9-Nov-03 18:51
itismydick9-Nov-03 18:51 
GeneralRe: IIsWebServer method calling problem Pin
Heath Stewart10-Nov-03 3:47
protectorHeath Stewart10-Nov-03 3:47 
Looking at the IIsWebServer WMI provider class, there is no documented "Status" property. Also, because it's a property, you can't invoke the property but you can invoke the property accessor - try invoking "get_Status" instead (if it existed, which it doesn't seem to). You can also use the Properties property of the DirectoryEntry itself and refer to the property by name (since the returned PropertiesCollection is an IDictionary). You'll get a PropertyValueCollection and can loop through the values (probably only one for what you want) to get the values.

While there is no documented "Status" property, there is a "ServerState" property that returns an SINT32 (should map to an Int32 in .NET).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: IIsWebServer method calling problem Pin
itismydick10-Nov-03 21:07
itismydick10-Nov-03 21:07 
GeneralRe: IIsWebServer method calling problem Pin
itismydick10-Nov-03 21:20
itismydick10-Nov-03 21:20 
GeneralRe: IIsWebServer method calling problem Pin
itismydick10-Nov-03 21:47
itismydick10-Nov-03 21:47 
GeneralData Link Property Pin
Inam9-Nov-03 13:57
Inam9-Nov-03 13:57 
GeneralRe: Data Link Property Pin
BinhTran9-Nov-03 17:57
BinhTran9-Nov-03 17:57 
GeneralRe: Data Link Property Pin
BinhTran9-Nov-03 17:58
BinhTran9-Nov-03 17:58 
GeneralRe: Data Link Property Pin
Husein22-Nov-03 0:21
Husein22-Nov-03 0:21 
QuestionHow can I overdraw the titlebar? Pin
icysky9-Nov-03 13:44
icysky9-Nov-03 13:44 
QuestionWhen exactly should a StringBuilder be used? Pin
gicio9-Nov-03 10:48
gicio9-Nov-03 10:48 
AnswerRe: When exactly should a StringBuilder be used? Pin
J. Dunlap9-Nov-03 11:11
J. Dunlap9-Nov-03 11:11 
AnswerRe: When exactly should a StringBuilder be used? Pin
Nick Parker9-Nov-03 11:17
protectorNick Parker9-Nov-03 11:17 
AnswerRe: When exactly should a StringBuilder be used? Pin
Colin Angus Mackay9-Nov-03 13:59
Colin Angus Mackay9-Nov-03 13:59 
Generalone simple way to look at it Pin
CillyMe10-Nov-03 5:49
CillyMe10-Nov-03 5:49 
AnswerRe: When exactly should a StringBuilder be used? Pin
LongRange.Shooter10-Nov-03 6:17
LongRange.Shooter10-Nov-03 6:17 
Generaltemp monitor from motherboard Pin
Rob Tomson9-Nov-03 9:38
Rob Tomson9-Nov-03 9:38 
GeneralRe: temp monitor from motherboard Pin
Nick Parker9-Nov-03 10:21
protectorNick Parker9-Nov-03 10:21 
GeneralRe: temp monitor from motherboard Pin
Rob Tomson10-Nov-03 4:07
Rob Tomson10-Nov-03 4:07 

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.