Прочетете на английски Редактиране

Споделяне чрез


WindowsRuntimeMetadata.ReflectionOnlyNamespaceResolve Event

Definition

Occurs when the resolution of a Windows Metadata file fails in the reflection-only context.

C#
[add: System.Security.SecurityCritical]
[remove: System.Security.SecurityCritical]
public static event EventHandler<System.Runtime.InteropServices.WindowsRuntime.NamespaceResolveEventArgs> ReflectionOnlyNamespaceResolve;

Event Type

Attributes

Remarks

After this event is raised and handled, it is not raised again for the lifetime of the application domain. The list of files that defines the namespace cannot be changed. This event is analogous to the ReflectionOnlyAssemblyResolve event for managed assemblies.

See the NamespaceResolveEventArgs class.

Важно

The event handler for this event should not throw exceptions.

Applies to

Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also