You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/libraries/System.Runtime.InteropServices/src/System/Runtime/InteropServices/Marshalling/ComInterfaceOptions.cs
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,17 @@ public enum ComInterfaceOptions
23
23
/// <summary>
24
24
/// Generate a wrapper for managed objects to enable exposing them through the COM interface.
25
25
/// </summary>
26
+
/// <remarks>
27
+
/// <para>
28
+
/// When this flag is the only one specified on a given COM interface, no implementation methods will be generated
29
+
/// to support <see cref="System.Runtime.InteropServices.IDynamicInterfaceCastable"/> casts. In such a scenario,
30
+
/// attempting to cast to that interface type will still succeed, but any calls to interface methods will fail.
31
+
/// </para>
32
+
/// <para>
33
+
/// Using only this flag is purely a binary size optimization. If calling methods via this interface on native
34
+
/// object is required, the <see cref="ComObjectWrapper"/> flag should also be used instead.
35
+
/// </para>
36
+
/// </remarks>
26
37
ManagedObjectWrapper=0x1,
27
38
/// <summary>
28
39
/// Generate a wrapper for COM objects to enable exposing them through the managed interface.
0 commit comments