473,387 Members | 3,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Coding WSH in VB.NET to get intellisense?

I was hoping to get some help from VS2008 intellisense. I have this little
script and I would like to see what methods I can call from the oSite
object:

Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")

' Retrieve the default Web site.
'Set oSite = oWebAdmin.Get("Site.Name='Default Web Site'")

' you can now access oSite.LogFile.Directory

Can I convert this to VB.NET in such a way that VS2008 can do early binding
and enumerate the methods and properties for me?

How would I find out what classes to declare oWebAdmin and oSite as?

Thanks,
Siegfried
Jun 27 '08 #1
1 1550
You could try perhaps the mgmtclassgen.exe tool :

http://msdn.microsoft.com/en-us/library/2wkebaxa.aspx

--
Patrice

"Siegfried Heintze" <si*******@heintze.coma écrit dans le message de
groupe de discussion : OH**************@TK2MSFTNGP05.phx.gbl...
I was hoping to get some help from VS2008 intellisense. I have this little
script and I would like to see what methods I can call from the oSite
object:

Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")

' Retrieve the default Web site.
'Set oSite = oWebAdmin.Get("Site.Name='Default Web Site'")

' you can now access oSite.LogFile.Directory

Can I convert this to VB.NET in such a way that VS2008 can do early
binding and enumerate the methods and properties for me?

How would I find out what classes to declare oWebAdmin and oSite as?

Thanks,
Siegfried

Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul Aspinall | last post by:
Can anyone recommend a good editor for coding Javascript?? ie. once which has 'intellisense' type prompting etc. If there isn't an editor with this built-in, is there a program which does it as...
39
by: Patrick | last post by:
The c# code style guide that I follow suggests that class variables (fields) be coded with camel casing, like this: int recordId; string name; It also suggests that variables within methods...
4
by: Sue | last post by:
ASP.NET web application, data grid with several fields (Labels), table below the datagrid with several textboxes and dropdown lookup tables. When a user clicks on the "Select" button in datagrid,...
2
by: Newbie \(C#,Asp.net\) | last post by:
Hi I have two simple questions that I make sure that I have underestood them 1) what is the main difference between inline coding and code behind besides that code behind is part of DLL and is...
8
by: Electrified Research | last post by:
I just want to know other peoples' views about this. Now that VS2005 is out, how do people feel about visual editors? Personally I am so comfortable with hand coding that Visual Studio along...
11
by: UJ | last post by:
Folks, Can anybody point me towards a site that explains the Microsoft Coding Standards? I downloaded FXCop and understandably it's complaining a lot. I do have questions though: 1. What if...
60
by: Dave | last post by:
I'm never quite sure whether to use "this." or not when referring to fields or properties in the same class. It obviously works just fine without it but sometimes I wonder if using this....
17
by: M.Siler | last post by:
I'm trying to get my head around a conversation I had with a developer the other day. We were talking about Codesmith vs. Hand coding. He's position is Codesmith is for junior to mid level...
3
by: Travis | last post by:
Hi, I was a user of Visual C# for a while and have gotten used to the Intellisense for that program. I went to try Visual Basic, and the intellisense is so much different. I'll try to make an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.