Publish.ProcessServerTlb Método

Definición

Procesa una biblioteca de tipos de servidor y agrega o elimina entradas de componente a los archivos Web.config y Default.disco. Genera un proxy si es necesario.

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

El identificador de programación de la clase.

SrcTlbPath
String

Ruta de acceso al archivo que contiene la biblioteca de tipos.

PhysicalPath
String

Directorio de la aplicación Web.

Operation
String

Operación que se va a realizar.

strAssemblyName
String

Cuando este método finaliza, este parámetro contiene el nombre para mostrar del ensamblado.

TypeName
String

Cuando este método finaliza, este parámetro contiene el nombre de tipo completo del ensamblado.

Error
String

Cuando se devuelve el valor del método, este parámetro contiene un mensaje de error si se detecta un problema.

Implementaciones

Excepciones

Un llamador de la cadena de llamadas no tiene permiso para obtener acceso al código no administrado.

Archivo scrobj.dll al que hace referencia el parámetro SrcTlbPath; por tanto, no se admite la publicación SOAP de los componentes de scripts.

Comentarios

ProcessServerTlb agrega una entrada al archivo de detección y al archivo web.config para los componentes de la biblioteca de tipos y genera o copia un proxy en el directorio bin para componentes no administrados. Si Operation es igual a "delete", las entradas del componente se quitan de los archivos Web.config y Default.disco.

Se recomienda que AddServerTlb y DeleteServerTlb se usen en lugar de ProcessServerTlb.

Se aplica a