Share via


Working with Visual C# .NET

Working with Visual C# .NET

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Microsoft® C# is a powerful, object-oriented language built on top of the Microsoft .NET Framework, which provides flexibility and speed when you build applications. The technologies used to build applications with Microsoft Exchange Server 2003, such as Collaboration Data Objects (CDO) and Microsoft ActiveX® Data Objects (ADO), are Component Object Model (COM) components, which provide their services through the COM run time. COM components are not inherently compatible with .NET Framework components, so the .NET Framework supports the use of COM components through COM interoperability. To use COM components such as CDO and ADO in your Microsoft Visual C#® application, you need to add a reference to the COM component in the Microsoft Visual Studio® .NET project.

Besides CDO and ADO, you can use the DirectoryEntry and DirectorySearcher classes in the System.DirectoryServices namespace in your application to access the Microsoft Active Directory® directory service. For information about the Active Directory schema that Exchange Server 2003 uses/modifies, see Active Directory Schema.

The HttpWebRequest and HttpWebResponse objects in the System.Net namespace enable the user to interact remotely with the Exchange store through the WebDAV protocol. Requests can be sent to the Exchange store either synchronously or asynchronously, and any error codes returned by the server are sent back as exceptions.

For more information about programming on the .NET Framework, see Microsoft .NET Development Online link.

The following section discusses:

Using COM Interoperability in Visual C# .NET

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.