Publish.ProcessServerTlb 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
处理服务器类型库,在 Web.config 和 Default.disco 文件中添加或删除组件条目。 如有必要,生成代理。
public:
virtual void ProcessServerTlb(System::String ^ ProgId, System::String ^ SrcTlbPath, System::String ^ PhysicalPath, System::String ^ Operation, [Runtime::InteropServices::Out] System::String ^ % strAssemblyName, [Runtime::InteropServices::Out] System::String ^ % TypeName, [Runtime::InteropServices::Out] System::String ^ % Error);
public void ProcessServerTlb(string ProgId, string SrcTlbPath, string PhysicalPath, string Operation, out string strAssemblyName, out string TypeName, out string Error);
abstract member ProcessServerTlb : string * string * string * string * string * string * string -> unit
override this.ProcessServerTlb : string * string * string * string * string * string * string -> unit
Public Sub ProcessServerTlb (ProgId As String, SrcTlbPath As String, PhysicalPath As String, Operation As String, ByRef strAssemblyName As String, ByRef TypeName As String, ByRef Error As String)
参数
- ProgId
- String
类的编程标识符。
- SrcTlbPath
- String
包含类型库的文件的路径。
- PhysicalPath
- String
Web 应用程序目录。
- Operation
- String
要执行的操作。
- strAssemblyName
- String
此方法返回时,此参数包含程序集的显示名称。
- TypeName
- String
此方法返回时,此参数包含程序集的完全限定类型名称。
- Error
- String
此方法返回时,如果遇到问题,此参数将包含错误消息。
实现
例外
调用链中的调用方无权访问非托管代码。
SrcTlbPathscrobj.dll引用的参数;因此不支持脚本组件的 SOAP 发布。
注解
ProcessServerTlb 将条目添加到发现文件和 typelib 中组件的 web.config 文件,并生成或复制代理到非托管组件的 bin 目录。 如果 Operation 等于“delete”,则会从 Web.config 和 Default.disco 文件中删除组件条目。
建议 AddServerTlb 使用, DeleteServerTlb 而不是 ProcessServerTlb使用。