Condividi tramite


Metodo LocalReport.AddFullTrustModuleInSandboxAppDomain

Aggiunge l'assembly fornito all'elenco di assembly eseguiti in modalità di attendibilità totale nel dominio applicazione in modalità sandbox.

Spazio dei nomi:  Microsoft.Reporting.WebForms
Assembly:  Microsoft.ReportViewer.WebForms (in Microsoft.ReportViewer.WebForms.dll)

Sintassi

'Dichiarazione
Public Sub AddFullTrustModuleInSandboxAppDomain ( _
    assemblyName As StrongName _
)
public void AddFullTrustModuleInSandboxAppDomain(
    StrongName assemblyName
)
public:
void AddFullTrustModuleInSandboxAppDomain(
    StrongName^ assemblyName
)
member AddFullTrustModuleInSandboxAppDomain : 
        assemblyName:StrongName -> unit 
public function AddFullTrustModuleInSandboxAppDomain(
    assemblyName : StrongName
)

Parametri

  • assemblyName
    Tipo: StrongName
    Nome dell'assembly da aggiungere.

Note

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.

Vedere anche

Riferimenti

LocalReport Classe

Spazio dei nomi Microsoft.Reporting.WebForms