ICANN认证国际域名顶级注册机构
网站建设,域名注册,空间租用,软件销售,广告设计 域名注册,空间租用, 网站建设,东莞网页设计,域名注册,网站推广,网站开发,网页设计 网站推广,,百度推广,新浪推广,雅虎推广,网易推广 标志设计,画册设计,包装设计,VI策划,企业形象顾问 连邦软件加盟店,提供销遥行,管家婆,速达,用友ERP,诺顿等软件报价及销售 建站必读 腾达网络,上网帮助中心, 腾达为东莞等地,提供网站建设,网站推广,广告设计,软件销售等优质服务!
建站必读


 
 
当前位置:首页 -> 建站必读 -> .NET技术
Creating E2K Mailbox with Directory Services
HOW TO: Create a Mailbox-Enabled Recipient by Using C# .NET

The information in this article applies to:

Microsoft Visual C# .NET (2002)

Microsoft Collaboration Data Objects for Exchange Management (CDOEXM)

Microsoft Exchange 2000 Server

Microsoft Exchange 2000 Enterprise Server

Microsoft Active Directory Client Extension

Microsoft Active Directory Services Interface, System Component



This article was previously published under Q313114

IN THIS TASK

SUMMARY



Requirements

Create a New C# Program

Code Description



Create a New DirectoryEntry

Set Properties on the New User

Create a New Mailbox

Troubleshooting

REFERENCES

SUMMARY

This step-by-step article describes how to create a mailbox-enabled user with the System.DirectoryServices namespace and CDO for Exchange Management (CDOEXM).



back to the top

Requirements

The following list outlines the recommended hardware, software, network infrastructure, and service packs that are required:

A Microsoft Windows 2000-based domain with Exchange 2000 installed

Visual C# .NET

Microsoft Exchange 2000 System Management Tools on the computer on which this code runs

back to the top

Create a New C# Program

In Visual C# .NET, create a new C# console program that is named MBTest.

In Solution Explorer, right-click References, and then click Add Reference.

On the .NET tab, add a project reference to System.DirectoryServices.

On the COM tab, add a reference to Microsoft CDO for Exchange Management.

Replace the code in class1.cs with the following code:using System;

using CDOEXM;

using System.DirectoryServices;



namespace MBTest

{

     class Class1

     {

          [STAThread]

          static void Main(string[] args)

          {

               //TODO: Change these items to values for your domain or organization.

               string defaultNC = "DC=yourdomain,DC=com";

               string alias = "jsmith";

               string fullName = "Joseph Smith";

               string password = "TestMb123.";

               string domainName = "yourdomain.com";

               string homeMDB = "CN=Mailbox Store (Your Server),CN=Your Storage Group,"

                         + "CN=InformationStore,CN=Your Server,CN=Servers,"

                         + "CN=Your Administrative Group,CN=Administrative Groups,"

                         + "CN=Your Org,CN=Microsoft Exchange,CN=Services,"

                         + "CN=Configuration,DC=Yourdomain,DC=Com";



               DirectoryEntry container,
 
 
本站关键词:
|东莞广告公司|东莞广告设计|网站建设东莞|东莞网站制作|东莞网站推广|东莞国内域名注册|东莞网站建设|东莞网页设计|东莞网络公司|网站建设|网页设计|网络公司||东莞广告公司|东莞广告设计|网站建设东莞|东莞网站制作|东莞网站推广|东莞国内域名注册|东莞网站建设|东莞网页设计|东莞网络公司|网站建设|网页设计|网络公司||东莞广告公司|东莞广告设计|网站建设东莞|东莞网站制作|东莞网站推广|东莞国内域名注册|东莞网站建设|东莞网页设计|东莞网络公司|网站建设|网页设计|网络公司||东莞广告公司|东莞广告设计|网站建设东莞|东莞网站制作|东莞网站推广|东莞国内域名注册|东莞网站建设|东莞网页设计|东莞网络公司|网站建设|网页设计|网络公司||东莞广告公司|东莞广告设计|网站建设东莞|东莞网站制作|东莞网站推广|东莞国内域名注册|东莞网站建设|东莞网页设计|东莞网络公司|网站建设|网页设计|网络公司||东莞广告公司|东莞广告设计|网站建设东莞|东莞网站制作|东莞网站推广|东莞国内域名注册|东莞网站建设|东莞网页设计|东莞网络公司|网站建设|网页设计|网络公司||东莞广告公司|东莞广告设计|网站建设东莞|东莞网站制作|东莞网站推广|东莞国内域名注册|东莞网站建设|东莞网页设计|东莞网络公司|网站建设|网页设计|网络公司||东莞广告公司|东莞广告设计|网站建设东莞|东莞网站制作|东莞网站推广|东莞国内域名注册|东莞网站建设|东莞网页设计|东莞网络公司|网站建设|网页设计|网络公司||东莞广告公司|东莞广告设计|网站建设东莞|东莞网站制作|东莞网站推广|东莞国内域名注册|东莞网站建设|东莞网页设计|东莞网络公司|网站建设|网页设计|网络公司||东莞广告公司|东莞广告设计|网站建设东莞|东莞网站制作|东莞网站推广|东莞国内域名注册|东莞网站建设|东莞网页设计|东莞网络公司|网站建设|网页设计|网络公司||东莞广告公司|东莞广告设计|网站建设东莞|东莞网站制作|东莞网站推广|东莞国内域名注册|东莞网站建设|东莞网页设计|东莞网络公司|网站建设|网页设计|网络公司||东莞广告公司|东莞广告设计|网站建设东莞|东莞网站制作|东莞网站推广|东莞国内域名注册|东莞网站建设|东莞网页设计|东莞网络公司|网站建设|网页设计|网络公司||东莞广告公司|东莞广告设计|网站建设东莞|东莞网站制作|东莞网站推广|东莞国内域名注册|东莞网站建设|东莞网页设计|东莞网络公司|网站建设|网页设计|网络公司||东莞广告公司|东莞广告设计|网站建设东莞|东莞网站制作|东莞网站推广|东莞国内域名注册|东莞网站建设|东莞网页设计|东莞网络公司|网站建设|网页设计|网络公司|
域名注册 | 虚拟主机 | 网站建设 | 网站推广 | 广告设计 | 帮助中心 | 软件中心 | 关于腾达
东莞市腾达信息工程有限公司      本站网络实名: 东莞网站建设
地址:东莞市新城市中心区第一国际B座610   邮编:523007
电话:0769-22026071 22026072 传真:0769-22026076 24小时服务热线:13712032014
© 2002~2005 腾达网络   版权所有