PC Review


Reply
Thread Tools Rate Thread

Application run parameters. How to read them?

 
 
Claire
Guest
Posts: n/a
 
      6th Feb 2005
If values are sent as parameters to an application on run, how do you read
them back in visual studio c# .net please?



 
Reply With Quote
 
 
 
 
Michael Nedzelsky
Guest
Posts: n/a
 
      6th Feb 2005
Is it a console application? Do you mean Command Line Parameters? If so, use
the Main method, which get parameters at start time.

public static void Main(string[] args)



 
Reply With Quote
 
Sean Hederman
Guest
Posts: n/a
 
      6th Feb 2005
"Claire" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If values are sent as parameters to an application on run, how do you read
> them back in visual studio c# .net please?


From MSDN:
The Main method can use arguments, in which case, it takes one of the
following forms:

static int Main(string[] args)
static void Main(string[] args)


 
Reply With Quote
 
Claire
Guest
Posts: n/a
 
      6th Feb 2005
thanks all


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot read application parameters =?Utf-8?B?dnZlbms=?= Microsoft ASP .NET 0 10th Oct 2006 02:05 PM
read datareader stream and read output parameters at the same time =?Utf-8?B?YmVu?= Microsoft ADO .NET 1 4th Jan 2005 01:31 PM
Startup parameters for Read-Only? =?Utf-8?B?RGFuIFIu?= Microsoft Word Document Management 1 30th Aug 2004 07:39 PM
read only (const) parameters Microsoft C# .NET 1 23rd Jun 2004 03:37 AM
How to read data using two parameters? ST Choong Microsoft C# .NET 1 19th Sep 2003 01:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:08 PM.