RE: Getting AppSetting from app.config

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi GaryDean,

It seems that your WinForms application is written in C#.

In C#, you should use the keyword "typeof" to obtain the System.Type object
for a type. For example,
System.Type type = typeof(int);

The VB.NETequivalent is the keyword "GetType". For example,
Dim type As Sytem.Type = GetType(Integer)

For more information on the keyword typeof and GetType, you may visit the
following links:

"typeof (C# Reference) "
http://msdn2.microsoft.com/en-us/library/58918ffs.aspx

"GetType Operator "
http://msdn2.microsoft.com/en-us/library/tay4kywk.aspx

Hope this helps.

If you have anything unclear, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: IsEmpty function in VSTO
    ... Null keyword is used to indicate that a variable contains no valid data. ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.excel.programming)
  • RE: Generic SortedList and SortedDictionary for comlpex sorting Q..
    ... When we use SortedList<TKey,TValue>, we can only sort the list based on the ... convenient to access the value in the collection with a 'keyword'. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: availability of "typeof" keyword
    ... Arkadiy wrote: not in a ... How does a user of HP aC++ determines whether the typeof (or ... : __typeof__) keyword is available? ... you can use -Agcc to support it. ...
    (comp.sys.hp.hpux)
  • Re: Public delegate & event not seen in parent instantiation
    ... There're two kinds of types in .NET world, i.e. value type and reference ... have to pass it by reference, using the ref or out keyword. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • I encounter the same error, but my data does not have the benefit of record tags.
    ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ... where an initial response from the community or a Microsoft Support ... I am having trouble creating one input flat file. ...
    (microsoft.public.biztalk.general)