LocalReport.AddFullTrustModuleInSandboxAppDomain 方法

将提供的程序集添加到在沙盒应用程序域中以完全信任模式运行的程序集列表。

命名空间:  Microsoft.Reporting.WinForms
程序集:  Microsoft.ReportViewer.WinForms(在 Microsoft.ReportViewer.WinForms.dll 中)

语法

声明
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
)

参数

  • assemblyName
    类型:StrongName
    要添加的程序集的名称。

备注

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.

请参阅

参考

LocalReport 类

Microsoft.Reporting.WinForms 命名空间