Share via


Publish.ProcessServerTlb Méthode

Définition

Traite une bibliothèque de types serveur, en ajoutant ou en supprimant des entrées de composants dans les fichiers Web.config et Default.disco. Génère un proxy si nécessaire.

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)

Paramètres

ProgId
String

Identificateur programmatique de la classe.

SrcTlbPath
String

Chemin d'accès du fichier qui contient la bibliothèque de types.

PhysicalPath
String

Répertoire d'applications Web.

Operation
String

Opération à exécuter.

strAssemblyName
String

Lorsque cette méthode est retournée, ce paramètre contient le nom complet de l'assembly.

TypeName
String

Lorsque cette méthode est retournée, ce paramètre contient le nom qualifié complet de l'assembly.

Error
String

Lorsque cette méthode est retournée, le paramètre contient un message d'erreur si un problème a été rencontré.

Implémente

Exceptions

Un appelant dans la chaîne d'appel ne dispose pas de l'autorisation requise pour accéder à du code non managé.

Le paramètre SrcTlbPath référençait scrobj.dll ; par conséquent, la publication SOAP des composants de script n'est pas prise en charge.

Remarques

ProcessServerTlb ajoute une entrée au fichier de découverte et au fichier web.config pour les composants du typelib, et génère ou copie un proxy dans le répertoire bin pour les composants non managés. Si Operation est égal à « delete », les entrées de composant sont supprimées des fichiers Web.config et Default.disco.

Il est recommandé d’utiliser AddServerTlb et DeleteServerTlb au lieu de ProcessServerTlb.

S’applique à