다음을 통해 공유


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

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