我在http://www.hmailserver.com/documentation/latest/?page=com_example_account_create下面提供了以下代码作为hMailServer的DCOM API提供的代码以下脚本正常工作.它没有任何参考.在安装hMailServer之后,运行以下代码可以创建一个帐户.现在,我在C#中需要相同的东西.他们没有为我提供任何C#我用Google搜索的库,但我没有相关的结果是下面的代码,但根据hMailServer API,他们说你可以将下面的脚本转换成你想要的任何语言.但是怎么样?我甚至不知道如何开始写第一行.有人请帮帮我.
Dim obApp
Set obApp = CreateObject("hMailServer.Application")
' Authenticate. Without doing this, we won't have permission
' to change any server settings or add any objects to the
' installation.
Call obApp.Authenticate("Administrator", "your-main-hmailserver-password")
' Locate the domain we want to add the account to
Dim obDomain
Set obDomain = obApp.Domains.ItemByName("example.com")
Dim obAccount
Set obAccount = obDomain.Accounts.Add
' Set the account properties
obAccount.Address = "account@example.com"
obAccount.Password = "secret"
obAccount.Active = True
obAccount.MaxSize = 100 ' Allow max …Run Code Online (Sandbox Code Playgroud) 可能重复:
ASP.NET取消默认提交按钮
我的ASP.NET页面中只有一个按钮但是当我单击"Enter"键时,按钮单击功能就是说话的地方.我不希望这样.只需手动点击即可.怎么做到这个?
用户何时离开聊天页面(通过注销或仅通过简单关闭浏览器窗口).聊天脚本立即检测到该用户离开并显示脱机签名.这个过程在几秒钟内发生,这是如何真正起作用的?
我是ASP.NET/c#开发人员,除此之外我使用JavaScripts而很少使用PHP.请不要超过其他语言的答案.
可能重复:
如何计算相对时间?
在SO上发布内容时显示发布5 mins ago或1hr ago.如何计算时间并以相同方式显示?
有许多应用程序可以识别相似的面孔.最受欢迎的是Picasa.这些应用程序如何执行以下操作?
1)检测脸部
2)检查数据库中的类似情况.