File tree 2 files changed +8
-0
lines changed
src/System.Management.Automation
engine/ExperimentalFeature 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -596,6 +596,10 @@ public static unsafe class PowerShellUnsafeAssemblyLoad
596
596
/// <summary>
597
597
/// Load an assembly in memory from unmanaged code.
598
598
/// </summary>
599
+ /// <remarks>
600
+ /// This API is covered by the experimental feature 'PSLoadAssemblyFromNativeCode',
601
+ /// and it may be deprecated and removed in future.
602
+ /// </remarks>
599
603
/// <param name="data">Unmanaged pointer to assembly data buffer.</param>
600
604
/// <param name="size">Size in bytes of the assembly data buffer.</param>
601
605
/// <returns>Returns zero on success and non-zero on failure.</returns>
Original file line number Diff line number Diff line change @@ -140,7 +140,11 @@ static ExperimentalFeature()
140
140
new ExperimentalFeature (
141
141
name : PSNativeCommandArgumentPassingFeatureName ,
142
142
description : "Use ArgumentList when invoking a native command" ) ,
143
+ new ExperimentalFeature (
144
+ name : "PSLoadAssemblyFromNativeCode" ,
145
+ description : "Expose an API to allow assembly loading from native code" ) ,
143
146
} ;
147
+
144
148
EngineExperimentalFeatures = new ReadOnlyCollection < ExperimentalFeature > ( engineFeatures ) ;
145
149
146
150
// Initialize the readonly dictionary 'EngineExperimentalFeatureMap'.
You can’t perform that action at this time.
0 commit comments