471,570 Members | 936 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

How to find the namespace a class belongs to?

Hi,

I try to use Process to open a Word document from my application.
The problem is I don't know what namespace to use in the Using statement so
that :

Process myProcess = new Process();

is recognized.
If I use Help it is useless, it doesn't tell me anything at all about it.
Thanks,
Doru
Feb 8 '06 #1
9 3063
Doru,

Check the System.Diagnostics namespace.

Also, if you right click on Process in your code in VS.NET 2005, it will
have an option to "Resolve" which will place the using statement in your
code.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Doru Roman" <do*******@rogers.com> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
Hi,

I try to use Process to open a Word document from my application.
The problem is I don't know what namespace to use in the Using statement
so that :

Process myProcess = new Process();

is recognized.
If I use Help it is useless, it doesn't tell me anything at all about it.
Thanks,
Doru

Feb 8 '06 #2
System.Diagnostics.Process

"Doru Roman" <do*******@rogers.com> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
Hi,

I try to use Process to open a Word document from my application.
The problem is I don't know what namespace to use in the Using statement
so that :

Process myProcess = new Process();

is recognized.
If I use Help it is useless, it doesn't tell me anything at all about it.
Thanks,
Doru

Feb 8 '06 #3
Hi,
is recognized.
If I use Help it is useless, it doesn't tell me anything at all about it.
Thanks,


What?

If you put Process class you will get it , even in google the first link is
the correct one !

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Feb 8 '06 #4
Thanks Nicholas. I use .NET 2002 which doesn't have a Resolve option. So in
general, how can I find out to what namespace a class belongs to? You
"Resolved" me this time, but it would be nice if I knew a way to find out
any other class where it comes from, using the tools that .NET offers.
Feb 8 '06 #5
Thanks Ravi. But how can I find out by myself, using whatever tools .NET
2002 or 2003 offers?
Feb 8 '06 #6
Go to http://msdn.microsoft.com.

Type "Process" in the search box.

Choose one of the links that comes up with documentation about the
Process class. (When I did it, "Process.GetCurrentProcess Method"
showed up second.)

The only annoying part of this is that I guess everyone is after .NET
2.0 documentation now, because the http://msdn2.microsoft.com
documentation keeps coming up. I can't even find the old .NET 1.1
documentation any more.

Nonetheless, this will tell you want you need to know.

Feb 8 '06 #7
To show the classes and namespaces: View | Other Windows | Object Browser
Feb 8 '06 #8
I would use F1 and filter the help, by selecting only .Net Framework
(to filter my search results and only show the library, that's what you
want)...
In fact, I did this to answer this post...

Feb 9 '06 #9
Doru Roman wrote:
Thanks Nicholas. I use .NET 2002 which doesn't have a Resolve option. So in
general, how can I find out to what namespace a class belongs to? You
"Resolved" me this time, but it would be nice if I knew a way to find out
any other class where it comes from, using the tools that .NET offers.


I went to

http://msdn.microsoft.com/library/default.asp

then in the search typed "Process class". The search found "Process
Class (.Net Framework SDK)". Clicking on this will show you what you
want, and a whole lot more. In particular, the namespace is listed in
black, bold (not a link).

hth,
Scott
Feb 9 '06 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Ed Severn | last post: by
7 posts views Thread by carl.manaster | last post: by
1 post views Thread by vsgdp | last post: by
13 posts views Thread by toton | last post: by
17 posts views Thread by Peng Yu | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

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.