Publish.ProcessServerTlb Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Processes a server type library, either adding or deleting component entries to the Web.config and Default.disco files. Generates a proxy if necessary.
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)
Parameters
- ProgId
- String
The programmatic identifier of the class.
- SrcTlbPath
- String
The path for the file that contains the type library.
- PhysicalPath
- String
The Web application directory.
- Operation
- String
The operation to perform.
- strAssemblyName
- String
When this method returns, this parameter contains the display name of the assembly.
- TypeName
- String
When this method returns, this parameter contains the fully-qualified type name of the assembly.
- Error
- String
When this method returns, this parameter contains an error message if a problem was encountered.
Implements
Exceptions
A caller in the call chain does not have permission to access unmanaged code.
The SrcTlbPath
parameter referenced scrobj.dll; therefore, SOAP publication of script components is not supported.
Remarks
ProcessServerTlb adds an entry to the discovery file and the web.config file for the components in the typelib, and either generates or copies a proxy to the bin directory for unmanaged components. If Operation
equals "delete," then the component entries are removed from the Web.config and Default.disco files.
It is recommended that AddServerTlb and DeleteServerTlb be used instead of ProcessServerTlb.