ExecutionContext.GetObjectData メソッド
アセンブリ: mscorlib (mscorlib.dll 内)
 構文
構文Dim instance As ExecutionContext Dim info As SerializationInfo Dim context As StreamingContext instance.GetObjectData(info, context)
 例外
例外 解説
解説GetObjectData は、論理呼び出しコンテキスト情報で SerializationInfo を設定します。逆シリアル化中に、ストリームで転送された SerializationInfo から実行コンテキスト オブジェクトが再構成されます。
 使用例
使用例GetObjectData メソッドを使用するコード例を次に示します。このコード例は、ExecutionContext クラスのトピックで取り上げているコード例の一部分です。
' Create a SerializationInfo object to be used for getting the object data. Dim sI As New SerializationInfo(GetType(ExecutionContext), New FormatterConverter()) eC1.GetObjectData(sI, New StreamingContext(StreamingContextStates.All)) Dim lCC As LogicalCallContext = CType(sI.GetValue("LogicalCallContext", GetType(LogicalCallContext)), LogicalCallContext) ' The logical call context object should contain the previously created call context. Console.WriteLine(("Is the logical call context information available? " + lCC.HasInfo)) End Sub 'ExecutionContextMethods
SerializationInfo sI = new SerializationInfo( typeof(ExecutionContext), new FormatterConverter()); eC1.GetObjectData( sI, new StreamingContext(StreamingContextStates.All)); LogicalCallContext lCC = (LogicalCallContext)sI.GetValue( "LogicalCallContext", typeof(LogicalCallContext)); // The logical call context object should contain the previously // created call context. Console.WriteLine("Is the logical call context information " + "available? " + lCC.HasInfo);
 .NET Framework のセキュリティ
.NET Framework のセキュリティ プラットフォーム
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
 バージョン情報
バージョン情報 参照
参照- ExecutionContext.GetObjectData メソッドのページへのリンク

 
                             
                    


