Freigeben über


SPUserCodeCachedAssemblyGroup.AssemblyResolveHandler-Methode

Behandelt das AssemblyResolve -Ereignis der aktuellen 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
)

Parameter

Rückgabewert

Typ: System.Reflection.Assembly
Die aufgelöste Assembly.

Hinweise

Diese Methode lädt und gibt dann die Assembly, die von der Name -Eigenschaft des e -Parameters angegeben ist.

Siehe auch

Referenz

SPUserCodeCachedAssemblyGroup Klasse

SPUserCodeCachedAssemblyGroup-Member

Microsoft.SharePoint.Administration-Namespace