Share via


SoapServerTlb.AddServerTlb Méthode

Définition

Ajoute les entrées d'une bibliothèque de types serveur aux fichiers Web.config et Default.disco, selon les options de sécurité, et génère un proxy si nécessaire.

public:
 virtual void AddServerTlb(System::String ^ progId, System::String ^ classId, System::String ^ interfaceId, System::String ^ srcTlbPath, System::String ^ rootWebServer, System::String ^ inBaseUrl, System::String ^ inVirtualRoot, System::String ^ clientActivated, System::String ^ wellKnown, System::String ^ discoFile, System::String ^ operation, [Runtime::InteropServices::Out] System::String ^ % strAssemblyName, [Runtime::InteropServices::Out] System::String ^ % typeName);
public void AddServerTlb (string progId, string classId, string interfaceId, string srcTlbPath, string rootWebServer, string inBaseUrl, string inVirtualRoot, string clientActivated, string wellKnown, string discoFile, string operation, out string strAssemblyName, out string typeName);
abstract member AddServerTlb : string * string * string * string * string * string * string * string * string * string * string * string * string -> unit
override this.AddServerTlb : string * string * string * string * string * string * string * string * string * string * string * string * string -> unit
Public Sub AddServerTlb (progId As String, classId As String, interfaceId As String, srcTlbPath As String, rootWebServer As String, inBaseUrl As String, inVirtualRoot As String, clientActivated As String, wellKnown As String, discoFile As String, operation As String, ByRef strAssemblyName As String, ByRef typeName As String)

Paramètres

progId
String

Identificateur programmatique de la classe.

classId
String

Identificateur de classe (CLSID) de la bibliothèque de types.

interfaceId
String

IID de la bibliothèque de types.

srcTlbPath
String

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

rootWebServer
String

Serveur Web racine.

inBaseUrl
String

URL de base qui contient la racine virtuelle.

inVirtualRoot
String

Nom de la racine virtuelle.

clientActivated
String

true si le client est activé ; sinon, false.

wellKnown
String

true si connu ; sinon, false.

discoFile
String

true s'il s'agit d'un fichier de découverte ; sinon false.

operation
String

Opération à exécuter. Spécifiez "delete" ou une chaîne vide.

strAssemblyName
String

Lorsque cette méthode est retournée, contient le nom de l'assembly.

typeName
String

Lorsque cette méthode est retournée, contient le type de l'assembly.

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é.

L'utilitaire SOAP n'est pas disponible.

L'appel pour obtenir le répertoire système a échoué.

S’applique à