SPUserCodeCachedAssemblyGroup.AssemblyResolveHandler method

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

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

SPUserCodeCachedAssemblyGroup members

Microsoft.SharePoint.Administration namespace