Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.9 KB

reflection-objects-can-no-longer-be-passed-from-managed-code-out-of-process.md

File metadata and controls

51 lines (38 loc) · 1.9 KB

Reflection objects can no longer be passed from managed code to out-of-process DCOM clients

Details

Reflection objects can no longer be passed from managed code to out-of-process DCOM clients. The following types are affected:

  • xref:System.Reflection.Assembly?displayProperty=fullName
  • xref:System.Reflection.MemberInfo?displayProperty=fullName (and its derived types, including xref:System.Reflection.FieldInfo?displayProperty=fullName, xref:System.Reflection.MethodInfo?displayProperty=fullName, xref:System.Type?displayProperty=fullName, and xref:System.Reflection.TypeInfo?displayProperty=fullName)
  • xref:System.Reflection.MethodBody?displayProperty=fullName
  • xref:System.Reflection.Module?displayProperty=fullName
  • xref:System.Reflection.ParameterInfo?displayProperty=fullName

Calls to IMarshal for the object return E_NOINTERFACE.

Suggestion

Update marshaling code to work with non-reflection objects.

Name Value
Scope Minor
Version 4.6
Type Runtime

Affected APIs

  • xref:System.Reflection.Assembly?displayProperty=fullName
  • xref:System.Reflection.FieldInfo?displayProperty=fullName
  • xref:System.Reflection.MemberInfo?displayProperty=fullName
  • xref:System.Reflection.MethodBody?displayProperty=fullName
  • xref:System.Reflection.MethodInfo?displayProperty=fullName
  • xref:System.Reflection.Module?displayProperty=fullName
  • xref:System.Reflection.ParameterInfo?displayProperty=fullName
  • xref:System.Reflection.TypeInfo?displayProperty=fullName
  • xref:System.Type?displayProperty=fullName