在VB中创建传输代理DLL的问题。 [英] Problem creating a Transport Agent DLL in VB.

查看:73
本文介绍了在VB中创建传输代理DLL的问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此网址 http://msdn2.microsoft.com/en-us/library /aa579185.aspx Microsoft提供了如何在C#和VB中创建传输代理DLL的示例。我是VB编码器,只有很少的C#经验。无论如何,我能够在VS 2005中创建C#DLL,并且我能够使用PowerShell中的Install-TransportAgent命令安装代理,并且它运行良好。

At this url http://msdn2.microsoft.com/en-us/library/aa579185.aspx Microsoft gives an example of how to create a Transport Agent DLL in both C# and VB.  I'm a VB coder and have very little C# experience.  Anyway I was able to create the C# DLL in VS 2005 and I was able to install the Agent using the Install-TransportAgent command in PowerShell and it works great.

但是当我尝试使用VB示例执行相同操作时,我无法安装Install-TransportAgent命令中介。您可以告诉示例从未进行过测试,因为行"Imports System.Collections.Generic"应该是"Imports System.Collections.Generics"用"s"表示最后。所以代码显然不是从一个工作示例中复制和粘贴的。

But when I try to do the same using the VB example I cannot get the Install-TransportAgent command to install the Agent.  You can tell the example was never tested because the line "Imports System.Collections.Generic" should be "Imports System.Collections.Generics" with an "s" on the end.  So the code was obviously not copy and pasted from a working example.

如果有人知道这个VB传输代理示例有什么问题,请告诉我。

If anyone out there knows what's wrong with this VB Transport Agent example please let me know. 

推荐答案

我认为这个例子犯了一个错误,它应该有是一个OnEndOfData事件,如C#示例,而不是o nEndOfHeaders 。例如这样的东西应该可以正常工作

I think they made a mistake with the example and that it should have been a OnEndOfData event like the C# sample instead of onEndOfHeaders. eg Something like this should work okay




代码块


这篇关于在VB中创建传输代理DLL的问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆