Bewerken

Delen via


WindowsRuntimeMetadata.ReflectionOnlyNamespaceResolve Event

Definition

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

public:
 static event EventHandler<System::Runtime::InteropServices::WindowsRuntime::NamespaceResolveEventArgs ^> ^ ReflectionOnlyNamespaceResolve;
[add: System.Security.SecurityCritical]
[remove: System.Security.SecurityCritical]
public static event EventHandler<System.Runtime.InteropServices.WindowsRuntime.NamespaceResolveEventArgs> ReflectionOnlyNamespaceResolve;
[<add: System.Security.SecurityCritical>]
[<remove: System.Security.SecurityCritical>]
member this.ReflectionOnlyNamespaceResolve : EventHandler<System.Runtime.InteropServices.WindowsRuntime.NamespaceResolveEventArgs> 
Public Shared Custom Event ReflectionOnlyNamespaceResolve As EventHandler(Of NamespaceResolveEventArgs) 
Public Shared Event ReflectionOnlyNamespaceResolve As EventHandler(Of NamespaceResolveEventArgs) 

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.

Important

The event handler for this event should not throw exceptions.

Applies to

See also