Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6589359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:09:50+00:00 2026-05-25T17:09:50+00:00

I am migrating an old application to a newer .NET-version. The current application stores

  • 0

I am migrating an old application to a newer .NET-version. The current application stores arrays with user settings into the registry.

In the new application I want to change this mechanism into .NET Application settings (app.config), but I have only figured out so far how to store one-dimensional values in there, for example…

My.Settings.myName1 = "John Doe"
My.Settings.myMail1 = "john.doe@somemaildomain.com"
My.Settings.myName2 = "Lorem Ipsum"
My.Settings.myMail2 = "lorem.ipsum@somemaildomain.com"

I guess it is possible somehow to work not only with single values, but with arrays, too, which ideally could be accessed by a namespace, something like this:

REM just demo code to display what i want, no idea if something like this works...
My.Settings.myContacts(1).Name = "John Doe"
My.Settings.myContacts(1).Mail = "john.doe@somemaildomain.com"
My.Settings.myContacts(2).Name = "Lorem Ipsum"
My.Settings.myContacts(2).Mail = "lorem.ipsum@somemaildomain.com"

Is something similar possible? If not, is there another way how to work with multidimensional values / arrays in the .NET Application settings?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:09:50+00:00Added an answer on May 25, 2026 at 5:09 pm

    .NET app settings are key, value pair only.

    If you want multidimensional values in app.config you should look at implementing your own custom config section.

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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are migrating several old mainframe applications for a customer to newer ASP.NET +
I am migrating a Perl-based web application to Rails. The old application stores dates
I'm migrating an old Delphi application that I wrote into C#. The application is
We were like migrating and old application to a new architecture. The two files
I am migrating an application from .NET 1.1 to .NET 2.0. Should I remove
I'm migrating an application from ColdFusion to ASP.Net MVC and have a little problem
We are currently investigating options for migrating a legacy application built using .NET 1.1
I am migrating a web application (WebForms) from ASP.NET 3.5 on IIS6 to ASP.NET
I am trying to compile old iPhone application project using new LLVM 3.0 compiler.
I am working on migrating a bunch of data from an old database into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.