AssemblyContextControlItem.GetAssembly Método

Definição

Retorna o assembly carregado no momento usando o serviço de suporte multi-targeting.

public:
 static System::Reflection::Assembly ^ GetAssembly(System::Reflection::AssemblyName ^ assemblyName, System::Activities::Presentation::Hosting::IMultiTargetingSupportService ^ multiTargetingService);
public static System.Reflection.Assembly GetAssembly (System.Reflection.AssemblyName assemblyName, System.Activities.Presentation.Hosting.IMultiTargetingSupportService multiTargetingService);
static member GetAssembly : System.Reflection.AssemblyName * System.Activities.Presentation.Hosting.IMultiTargetingSupportService -> System.Reflection.Assembly
Public Shared Function GetAssembly (assemblyName As AssemblyName, multiTargetingService As IMultiTargetingSupportService) As Assembly

Parâmetros

assemblyName
AssemblyName

O nome do assembly.

multiTargetingService
IMultiTargetingSupportService

O serviço de vários destinos usado para obter a versão adequada do assembly carregado que corresponde ao .NET Framework de destino do projeto atual.

Retornos

O assembly.

Comentários

Se multiTargetingService for null, esse método carregará o assembly do nome do assembly especificado.

Aplica-se a