how to incorporate the Validation Application Block into your application
To prepare your application
- Add a reference to the Validation Application Block assembly. In Visual Studio, right-click your project node in Solution Explorer, and then click Add References. Click the Browse tab and find the location of the Microsoft.Practices.EnterpriseLibrary.Validation.dll assembly. Select the assembly, and then click OK to add the reference.
- Use the same procedure to set a reference to the Enterprise Library Common assembly, named Microsoft.Practices.EnterpriseLibrary.Common.dll.
- Follow the same procedure to set a reference to the ObjectBuilder assembly, Microsoft.Practices.EnterpriseLibrary.ObjectBuilder 2 .dll.
- If you are using the ASP.NET, Windows Forms, or WCF integration assemblies, add one of the following references as appropriate.
- Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WinForms.dll
- Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet.dll
- Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WCF.dll
- (Optional) To use elements from the Validation Application Block without fully qualifying the type with the namespace, add the following using statements (C#) or Imports statements (Visual Basic) to the top of your source code file.
C#
using Microsoft.Practices.EnterpriseLibrary.Validation; using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;
Visual Basic
Imports Microsoft.Practices.EnterpriseLibrary.Validation Imports Microsoft.Practices.EnterpriseLibrary.Validation.Validators
Note:
For Visual Basic projects, you can use the References page of the Project Designer to manage references and imported namespaces. To access the References page, select a project node in Solution Explorer. On the Project menu, click Properties. When the Project Designer appears, click the References tab.
Posted in: .NET Framework| Tags: Reference Block Application Validation Application Block Validation Incorporate Coding Assembly Microsoft click dll integration enterpriselibraryExcel 2007 Developer Reference
This reference contains conceptual overviews, programming tasks, samples, and reference documentation for developing solutions that are based on Microsoft Office Excel 2007.
Publish date of this reference: April 2009 (version 2007)
This documentation can be accessed from the following locations:
- From the product (most recent version): If you are connected to the Internet, you can view the most recent version of this reference in Excel. Click Help, and in the Search box, under Content from Office Online, click Developer Reference.
- From the product (installed version): If you are not connected to the Internet, you can still view the version of this reference that was included with your product. Click Help, and in the Search box, under Content from this computer, click Developer Reference. October 2006 (version 2007) is included with the product.
- From the MSDN Library. To view the April 2009 version of this reference in the MSDN Library, click the items in the MSDN table of contents that is displayed in the navigation pane of your browser.
Using the Open XML Format SDK 2.0
The Open XML Format SDK 2.0 simplifies the task of manipulating Open XML packages and the underlying Open XML schema elements within a package. The Open XML Application Programming Interface (API) encapsulates many common tasks that developers perform on Open XML packages, so you can perform complex operations with just a few lines of code.
This documentation pertains to the second Community Technical Preview (CTP) of the Open XML Format SDK 2.0, released April 2009.
Using the Open XML API
Using the Open XML API is simple. In your project or application, simply add a reference to the DocumentFormat.OpenXml.dll. A link to the download containing the assembly can be found at the Open XML Formats Resource Center.
To add a reference to the Open XML API dynamic linked library file, perform the following steps.
To add a reference in a Microsoft Visual Studio 2008 project
1. In Solution Explorer, right-click References and then click Add Reference. If the References node is not visible, click Project and then click Show All Files.
2. In the Add Reference dialog box, click .NET.
3. Scroll to the DocumentFormat.OpenXml option, highlight it, and then click OK.
4. The filename is displayed in the Solution Explorer.