Partager via


LocalReport.ReleaseSandboxAppDomain, méthode

Oblige l'objet LocalReport à libérer immédiatement sa référence au domaine d'applications bac à sable (sandbox).

Espace de noms :  Microsoft.Reporting.WebForms
Assembly :  Microsoft.ReportViewer.WebForms (dans Microsoft.ReportViewer.WebForms.dll)

Syntaxe

'Déclaration
Public Sub ReleaseSandboxAppDomain
public void ReleaseSandboxAppDomain()
public:
void ReleaseSandboxAppDomain()
member ReleaseSandboxAppDomain : unit -> unit 
public function ReleaseSandboxAppDomain()

Notes

In local processing mode, the report viewer loads the expression host assembly into either the current application domain or a sandboxed application domain based on the .NET Framework version (see ExecuteReportInSandboxAppDomain). The sandboxed application domain is shared by multiple instances of the LocalReport class. By default, LocalReport causes the application domain to expire after a set time to reclaim memory.

Use this method to force the LocalReport object to release its reference to the sandboxed application domain immediately and help reduce the time it takes for memory to be reclaimed.

If the LocalReport object requires the sandboxed application domain after the sandboxed application domain has already expired, the LocalReport object will create a new one.

Voir aussi

Référence

LocalReport Classe

Microsoft.Reporting.WebForms, espace de noms