Publish.ProcessServerTlb Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Traite une bibliothèque de types de serveur, en ajoutant ou en supprimant des entrées de composant aux 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 de l’application web.
- Operation
- String
Opération à effectuer.
- 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 de type complet de l’assembly.
- Error
- String
Lorsque cette méthode est retournée, ce paramètre contient un message d’erreur si un problème a été rencontré.
Implémente
Exceptions
Un appelant de la chaîne d’appels n’a pas l’autorisation d’accéder au code non managé.
Le SrcTlbPath paramètre référencé 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 gérés. Si Operation elle est égale à « delete », les entrées du composant sont supprimées des fichiers Web.config et Default.disco.
Il est recommandé d’utiliser AddServerTlb et DeleteServerTlb non pas .ProcessServerTlb