指定したオブジェクト型の新しいインスタンスを作成します。
Function CreateInstance( _
ByVal serverType As Type _) As MarshalByRefObject
[C#]
MarshalByRefObject CreateInstance(
TypeserverType);
[C++]
MarshalByRefObject* CreateInstance(
Type* serverType);
[JScript]
function CreateInstance(
serverType : Type) : MarshalByRefObject;
パラメータ
- serverType
アクティブにする型。
戻り値
指定した型に関連付けられている MarshalByRefObject 。
解説
指定した型の新しいオブジェクトを作成する必要がある場合は、 CreateInstance が共通言語ランタイムによって呼び出されます。このメソッドをオーバーライドして、独自のカスタム クラス ファクトリを作成します。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
ICustomFactory インターフェイス | ICustomFactory メンバ | System.Runtime.InteropServices 名前空間