What are My.Settings.Default and My.Settings.Item?

G

Guest

I'm trying to understand about the object My.Settings. I see the Default and
Item properties but don't know what they are for and how to use them.
 
J

Jan Hyde (VB MVP)

Peter <[email protected]>'s wild thoughts were
released on Thu, 12 Jul 2007 12:42:01 -0700 bearing the
following fruit:
I'm trying to understand about the object My.Settings. I see the Default and
Item properties but don't know what they are for and how to use them.

Public Overridable Default Property Item(ByVal propertyName
As String) As Object

Member of: System.Configuration.SettingsBase

Summary:
Gets or sets the value of the specified settings property.

Parameters:
propertyName: A System.String containing the name of the
property to access.

Return Values:
If found, the value of the named settings property.

As for default, it looks like it return a reference to
itself but I've no idea what you'd use it for.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top