LocalReport.AddFullTrustModuleInSandboxAppDomain Method

Adds the supplied assembly to the list of assemblies that run in full trust mode in the sandboxed application domain.

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)

Syntax

'Declaration
Public Sub AddFullTrustModuleInSandboxAppDomain ( _
    assemblyName As StrongName _
)
'Usage
Dim instance As LocalReport
Dim assemblyName As StrongName

instance.AddFullTrustModuleInSandboxAppDomain(assemblyName)
public void AddFullTrustModuleInSandboxAppDomain (
    StrongName assemblyName
)
public:
void AddFullTrustModuleInSandboxAppDomain (
    StrongName^ assemblyName
)
public void AddFullTrustModuleInSandboxAppDomain (
    StrongName assemblyName
)
public function AddFullTrustModuleInSandboxAppDomain (
    assemblyName : StrongName
)

Parameters

  • assemblyName
    The name of the assembly to be added.

Remarks

This method allows the specified assembly to be referenced by the report. The specified assembly will be granted FullTrust permissions in the sandboxed application domain. You should use this method instead of AddTrustedCodeModuleInCurrentAppDomain. In .NET Framework 3.5 (or in .NET Framework 4 with LegacySecurityPolicy enabled), you must explicitly call the ExecuteReportInSandboxAppDomain method to switch to the sandboxed application domain mode.

By default, only the assemblies in Reporting Services are given full trust.

See Also

Reference

LocalReport Class
LocalReport Members
Microsoft.Reporting.WebForms Namespace