Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Handles the AssemblyResolve event of the current AppDomain.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<SecurityPermissionAttribute(SecurityAction.Assert, ControlAppDomain := True)> _
Public Function AssemblyResolveHandler ( _
sender As Object, _
e As ResolveEventArgs _
) As Assembly
'Usage
Dim instance As SPUserCodeCachedAssemblyGroup
Dim sender As Object
Dim e As ResolveEventArgs
Dim returnValue As [Assembly]
returnValue = instance.AssemblyResolveHandler(sender, _
e)
[SecurityPermissionAttribute(SecurityAction.Assert, ControlAppDomain = true)]
public Assembly AssemblyResolveHandler(
Object sender,
ResolveEventArgs e
)
Parameters
sender
Type: System.ObjectThe source of the event.
e
Type: System.ResolveEventArgsThe data for the event.
Return value
Type: System.Reflection.Assembly
The resolved assembly.
Remarks
This method loads and then returns the assembly that is specified by the Name property of the e parameter.
See also
Reference
SPUserCodeCachedAssemblyGroup class