ISoapServerTlb.AddServerTlb(String, String, String, String, String, String, String, String, String, String, String, String, String) 方法

定义

根据安全选项,将服务器类型库的项添加到 Web.config 和 Default.disco 文件中,并在必要时生成代理。Adds the entries for a server type library to the Web.config and Default.disco files, depending on security options, and generates a proxy if necessary.

public:
 void AddServerTlb(System::String ^ progId, System::String ^ classId, System::String ^ interfaceId, System::String ^ srcTlbPath, System::String ^ rootWebServer, System::String ^ baseUrl, System::String ^ virtualRoot, System::String ^ clientActivated, System::String ^ wellKnown, System::String ^ discoFile, System::String ^ operation, [Runtime::InteropServices::Out] System::String ^ % assemblyName, [Runtime::InteropServices::Out] System::String ^ % typeName);
public void AddServerTlb (string progId, string classId, string interfaceId, string srcTlbPath, string rootWebServer, string baseUrl, string virtualRoot, string clientActivated, string wellKnown, string discoFile, string operation, out string assemblyName, out string typeName);
abstract member AddServerTlb : string * string * string * string * string * string * string * string * string * string * string * string * string -> unit
Public Sub AddServerTlb (progId As String, classId As String, interfaceId As String, srcTlbPath As String, rootWebServer As String, baseUrl As String, virtualRoot As String, clientActivated As String, wellKnown As String, discoFile As String, operation As String, ByRef assemblyName As String, ByRef typeName As String)

参数

progId
String

类的编程标识符。The programmatic identifier of the class.

classId
String

类型库的类标识符 (CLSID)。The class identifier (CLSID) for the type library.

interfaceId
String

类型库的 IID。The IID for the type library.

srcTlbPath
String

包含类型库的文件的路径。The path for the file containing the type library.

rootWebServer
String

根 Web 服务器。The root Web server.

baseUrl
String

包含虚拟根目录的基 URL。The base URL that contains the virtual root.

virtualRoot
String

虚拟根目录的名称。The name of the virtual root.

clientActivated
String

如果激活了客户端,为 true;否则为 falsetrue if client activated; otherwise, false.

wellKnown
String

如果已知,为 true;否则为 falsetrue if well-known; otherwise, false.

discoFile
String

如果是发现文件,为 true;否则为 falsetrue if a discovery file; otherwise, false.

operation
String

要执行的操作。The operation to perform. 指定“delete”或空字符串。Specify either "delete" or an empty string.

assemblyName
String

此方法返回时,包含程序集的名称。When this method returns, contains the name of the assembly.

typeName
String

此方法返回时,包含程序集的类型。When this method returns, contains the type of the assembly.

例外

调用链中的调用方无权访问非托管代码。A caller in the call chain does not have permission to access unmanaged code.

SOAP 实用工具不可用。The SOAP utility is not available.

获取系统目录的调用失败。The call to get the system directory failed.

适用于