Publish.ProcessServerTlb(String, String, String, String, String, String, String) Método
Definição
Processa uma biblioteca de tipos de servidor, adicionando ou excluindo entradas do componente para os arquivos Web.config e Default.disco.Processes a server type library, either adding or deleting component entries to the Web.config and Default.disco files. Gera um proxy, se necessário.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)
Parâmetros
- ProgId
- String
O identificador programático da classe.The programmatic identifier of the class.
- SrcTlbPath
- String
O caminho para o arquivo que contém a biblioteca de tipos.The path for the file that contains the type library.
- PhysicalPath
- String
O diretório do aplicativo Web.The Web application directory.
- Operation
- String
A operação a ser executada.The operation to perform.
- strAssemblyName
- String
Quando este método retornar, este parâmetro conterá o nome de exibição do assembly.When this method returns, this parameter contains the display name of the assembly.
- TypeName
- String
Quando este método retornar, este parâmetro conterá o nome do tipo totalmente qualificado do assembly.When this method returns, this parameter contains the fully-qualified type name of the assembly.
- Error
- String
Quando este método retornar, este parâmetro conterá uma mensagem de erro se um problema for encontrado.When this method returns, this parameter contains an error message if a problem was encountered.
Implementações
Exceções
Um chamador na cadeia de chamadas não tem permissão para acessar o código não gerenciado.A caller in the call chain does not have permission to access unmanaged code.
O parâmetro SrcTlbPath fez referência a scrobj.dll; portanto, não há suporte para publicação de SOAP de componentes de script.The SrcTlbPath parameter referenced scrobj.dll; therefore, SOAP publication of script components is not supported.
Comentários
ProcessServerTlb Adiciona uma entrada ao arquivo de descoberta e o arquivo de web.config para os componentes em TypeLib e gera ou copia um proxy para o diretório bin para componentes não gerenciados.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. Se Operation for igual a "excluir", as entradas de componente serão removidas do Web.config e dos arquivos. disco padrão.If Operation equals "delete," then the component entries are removed from the Web.config and Default.disco files.
É recomendável que AddServerTlb e DeleteServerTlb seja usado em vez de ProcessServerTlb .It is recommended that AddServerTlb and DeleteServerTlb be used instead of ProcessServerTlb.