Binding to Client Settings Sample
This sample demonstrates how to bind to client application settings to reflect user setting changes in the application.
For information about using the samples, see the following topics:
Security Note: |
---|
This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest coding practices. Microsoft assumes no liability for incidental or consequential damages should the sample code be used for purposes other than as intended. |
To build and run the sample using the command prompt
At the command prompt, navigate to the location where you saved the uncompressed sample files.
Navigate to one of the language-specific subdirectories under the SimpleBindingClientSettings directory.
Type msbuild to build the sample using the solution (.sln) file provided.
Type cd ClientSettings\bin\Debug to navigate to the location of the executable file.
Type ClientSettings.exe to run the sample.
To build and run the sample using Visual Studio
In Windows Explorer, navigate to the location where you saved the uncompressed sample files.
Navigate to one of the language-specific subdirectories under the SimpleBindingClientSettings directory.
Double-click the solution (.sln) file to open it in Visual Studio.
In Visual Studio, press F5 to build and run the sample.
Note
By default, running an application in Visual Studio 2005 by pressing F5 causes the application to run in a vshost process. When you run the application this way, the client settings are stored in a different location than when you run the application by pressing CTRL+F5. Settings saved when running one way are not visible when running the other way.