Επεξεργασία

Κοινή χρήση μέσω


SoapServerTlb.AddServerTlb Method

Definition

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:
 virtual void AddServerTlb(System::String ^ progId, System::String ^ classId, System::String ^ interfaceId, System::String ^ srcTlbPath, System::String ^ rootWebServer, System::String ^ inBaseUrl, System::String ^ inVirtualRoot, System::String ^ clientActivated, System::String ^ wellKnown, System::String ^ discoFile, System::String ^ operation, [Runtime::InteropServices::Out] System::String ^ % strAssemblyName, [Runtime::InteropServices::Out] System::String ^ % typeName);
public void AddServerTlb (string progId, string classId, string interfaceId, string srcTlbPath, string rootWebServer, string inBaseUrl, string inVirtualRoot, string clientActivated, string wellKnown, string discoFile, string operation, out string strAssemblyName, out string typeName);
abstract member AddServerTlb : string * string * string * string * string * string * string * string * string * string * string * string * string -> unit
override this.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, inBaseUrl As String, inVirtualRoot As String, clientActivated As String, wellKnown As String, discoFile As String, operation As String, ByRef strAssemblyName As String, ByRef typeName As String)

Parameters

progId
String

The programmatic identifier of the class.

classId
String

The class identifier (CLSID) for the type library.

interfaceId
String

The IID for the type library.

srcTlbPath
String

The path for the file containing the type library.

rootWebServer
String

The root Web server.

inBaseUrl
String

The base URL that contains the virtual root.

inVirtualRoot
String

The name of the virtual root.

clientActivated
String

true if client activated; otherwise, false.

wellKnown
String

true if well-known; otherwise, false.

discoFile
String

true if a discovery file; otherwise, false.

operation
String

The operation to perform. Specify either "delete" or an empty string.

strAssemblyName
String

When this method returns, contains the name of the assembly.

typeName
String

When this method returns, contains the type of the assembly.

Implements

Exceptions

A caller in the call chain does not have permission to access unmanaged code.

The SOAP utility is not available.

The call to get the system directory failed.

Applies to