VsShellComponentModelHost.GetOnlyApprovedComponentAssemblies 方法

定义

允许 VS 筛选掉组件程序集,然后再将其作为任何 MEF 目录的组成部分。

public:
 override System::Collections::Generic::IEnumerable<System::String ^> ^ GetOnlyApprovedComponentAssemblies(System::Collections::Generic::IEnumerable<System::String ^> ^ componentAssembliesToFilter);
public override System.Collections.Generic.IEnumerable<string> GetOnlyApprovedComponentAssemblies (System.Collections.Generic.IEnumerable<string> componentAssembliesToFilter);
override this.GetOnlyApprovedComponentAssemblies : seq<string> -> seq<string>
Public Overrides Function GetOnlyApprovedComponentAssemblies (componentAssembliesToFilter As IEnumerable(Of String)) As IEnumerable(Of String)

参数

componentAssembliesToFilter
IEnumerable<String>

要为在主机中加载而批准的程序集的列表。

返回

IEnumerable<String>

已批准的程序集的筛选列表。

适用于