LocalReport.AddFullTrustModuleInSandboxAppDomain-Methode
Fügt der Liste der Assemblys, die in der Sandbox-Anwendungsdomäne im Modus "Voll vertrauenswürdig" ausgeführt werden, die angegebene Assembly hinzu.
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)
Syntax
'Declaration
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
)
Parameter
- assemblyName
Typ: StrongName
Der Name der hinzuzufügenden Assembly.
Hinweise
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.