RemotingServices.IsObjectOutOfAppDomain メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

Dim tp As Object Dim returnValue As Boolean returnValue = RemotingServices.IsObjectOutOfAppDomain(tp)
戻り値
オブジェクトが現在のアプリケーション ドメイン外にある場合は true。それ以外の場合は false。


' Create remote version of TempConverter.Converter. Dim converter1 As TempConverter.Converter converter1 = CType(Activator.GetObject(GetType( _ TempConverter.Converter), _ "http://localhost:8085/TempConverter"), _ TempConverter.Converter) ' Create local version of TempConverter.Converter. Dim converter2 As New TempConverter.Converter() ' Returns true, converter1 is remote and in a different appdomain. System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain( _ converter1) ' Returns false, converter2 is local and running in this appdomain. System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain( _ converter2) ' Returns true, converter1 is remote and in a different context. System.Runtime.Remoting.RemotingServices.IsObjectOutOfContext( _ converter1) ' Returns false, converter2 is local and running in this context. System.Runtime.Remoting.RemotingServices.IsObjectOutOfContext( _ converter2)
// Create a remote version of TempConverter.Converter. TempConverter.Converter converter1 = (TempConverter.Converter) Activator.GetObject( typeof(TempConverter.Converter), "http://localhost:8085/TempConverter"); // Create a local version of TempConverter.Converter. TempConverter.Converter converter2 = new TempConverter.Converter(); // Returns true, converter1 is remote and in a different appdomain. System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain( converter1); // Returns false, converter2 is local and running in this appdomain. System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain( converter2); // Returns true, converter1 is remote and in a different context. System.Runtime.Remoting.RemotingServices.IsObjectOutOfContext( converter1); // Returns false, converter2 is local and running in this context. System.Runtime.Remoting.RemotingServices.IsObjectOutOfContext( converter2);
// Create a remote version of TempConverter::Converter. TempConverter::Converter^ converter1 = dynamic_cast<TempConverter::Converter^>(Activator::GetObject( TempConverter::Converter::typeid, "http://localhost:8085/TempConverter" )); // Create a local version of TempConverter::Converter. TempConverter::Converter^ converter2 = gcnew TempConverter::Converter; // Returns true, converter1 is remote and in a different appdomain. System::Runtime::Remoting::RemotingServices::IsObjectOutOfAppDomain( converter1 ); // Returns false, converter2 is local and running in this appdomain. System::Runtime::Remoting::RemotingServices::IsObjectOutOfAppDomain( converter2 ); // Returns true, converter1 is remote and in a different context. System::Runtime::Remoting::RemotingServices::IsObjectOutOfContext( converter1 ); // Returns false, converter2 is local and running in this context. System::Runtime::Remoting::RemotingServices::IsObjectOutOfContext( converter2 );

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からRemotingServices.IsObjectOutOfAppDomain メソッドを検索する場合は、下記のリンクをクリックしてください。

- RemotingServices.IsObjectOutOfAppDomain メソッドのページへのリンク