ServerWebConfig.AddElement メソッド

定義

SOAP 対応 COM+ アプリケーションで発行される COM インターフェイスの Web.config ファイルに XML 要素を追加します。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

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

パラメーター

FilePath
String

既存の Web.config ファイルのパス。

AssemblyName
String

追加する型を含むアセンブリの名前。

TypeName
String

追加する型の名前。

ProgId
String

追加する型のプログラム識別子。

WkoMode
String

既知のオブジェクトのアクティブ化方法を示す、 WellKnownObjectMode 列挙体のメンバーの名前に対応する文字列定数。

Error
String

エラー メッセージを書き込むことができる文字列。

実装

注釈

指定した型の場合、AddElement メソッドは、次の XPath を持つ<wellknown>要素の子として<activated>要素と<service>要素を Web.config ファイルに追加します。

/configuration/system.runtime.remoting/application/service

AssemblyNameTypeNameProgId、およびWkoModeパラメーターは、追加された 2 つの要素の属性値に組み込まれます。

AddElement を直接呼び出すべきではありません。 代わりに、 ProcessServerTlb メソッドを呼び出します。

適用対象