次の方法で共有


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

追加される型のプログラム ID。

WkoMode
String

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

Error
String

エラー メッセージの書き込み先の文字列。

実装

注釈

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

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

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

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

適用対象