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);


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に収録されているすべての辞書からExecutionContext.GetObjectData メソッドを検索する場合は、下記のリンクをクリックしてください。

- ExecutionContext.GetObjectData メソッドのページへのリンク