共用方式為


LocalReport.AddFullTrustModuleInSandboxAppDomain 方法

將提供的組件加入以完全信任模式執行於沙箱應用程式定義域的組件清單。

命名空間:  Microsoft.Reporting.WebForms
組件:  Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.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.WebForms 命名空間