开发者

Create Folders and rules in exchange server 2003

开发者 https://www.devze.com 2023-04-08 18:28 出处:网络
I would like to k开发者_运维知识库now How to Create Folders and rules in exchange server 2003 as i am using webdav code in c#. I have tried with few examples but not able to get it.To create a folder,

I would like to k开发者_运维知识库now How to Create Folders and rules in exchange server 2003 as i am using webdav code in c#. I have tried with few examples but not able to get it.


To create a folder, just issue a MKCOL request on the target url.

This is a small sample (withouth any error handling or so):

var request = WebRequest.Create("http://exchangeserver/exchange/username/NewFolder");
request.Method = "MKCOL";
request.UseDefaultCredentials = true;
request.GetResponse();

Regarding the rules. There is no good way to do this using WebDAV. You should check another technology, like Redemption. It can be used from .NET and offers the functionality you need.

Outlook Redemption: http://www.dimastr.com/redemption/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号