SPUserCodeCachedAssemblyGroup.AssemblyResolveHandler Method
Handles the AssemblyResolve event of the current AppDomain.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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