Share via


IServerWebConfig.AddElement Méthode

Définition

Ajoute des éléments XML à un fichier Web.config pour une interface COM qui est publiée dans une application COM+ compatible SOAP.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

public:
 void AddElement(System::String ^ FilePath, System::String ^ AssemblyName, System::String ^ TypeName, System::String ^ ProgId, System::String ^ Mode, [Runtime::InteropServices::Out] System::String ^ % Error);
public void AddElement (string FilePath, string AssemblyName, string TypeName, string ProgId, string Mode, out string Error);
abstract member AddElement : string * string * string * string * string * string -> unit
Public Sub AddElement (FilePath As String, AssemblyName As String, TypeName As String, ProgId As String, Mode As String, ByRef Error As String)

Paramètres

FilePath
String

Chemin d'accès au fichier Web.config existant.

AssemblyName
String

Nom de l'assembly qui contient le type qui est ajouté.

TypeName
String

Nom du type qui est ajouté.

ProgId
String

Identificateur programmatique pour le type qui est ajouté.

Mode
String

Constante de chaîne qui correspond au nom d'un membre de l'énumération WellKnownObjectMode, qui indique comment un objet connu est activé.

Error
String

Chaîne dans laquelle un message d'erreur peut être écrit.

Remarques

Pour plus d’informations sur l’implémentation, consultez la AddElement méthode. Toutefois, vous n’avez pas besoin d’appeler AddElement la méthode directement.

S’applique à