Skip to content

Latest commit

 

History

History
108 lines (83 loc) · 4.5 KB

nf-rometadataapi-imetadataassemblyimport-findassembliesbyname.md

File metadata and controls

108 lines (83 loc) · 4.5 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:rometadataapi.IMetaDataAssemblyImport.FindAssembliesByName
IMetaDataAssemblyImport::FindAssembliesByName (rometadataapi.h)
Gets an array of assemblies with the specified name, using the standard rules employed by the common language runtime (CLR) for resolving references.
FindAssembliesByName
FindAssembliesByName method [Windows Runtime]
FindAssembliesByName method [Windows Runtime]
IMetaDataAssemblyImport interface
IMetaDataAssemblyImport interface [Windows Runtime]
FindAssembliesByName method
IMetaDataAssemblyImport.FindAssembliesByName
IMetaDataAssemblyImport::FindAssembliesByName
rometadataapi/IMetaDataAssemblyImport::FindAssembliesByName
winrt.imetadataassemblyimport_findassembliesbyname
winrt\imetadataassemblyimport_findassembliesbyname.htm
WinRT
147158ba-060e-404e-9721-3d0c2498f5c9
12/05/2018
FindAssembliesByName, FindAssembliesByName method [Windows Runtime], FindAssembliesByName method [Windows Runtime],IMetaDataAssemblyImport interface, IMetaDataAssemblyImport interface [Windows Runtime],FindAssembliesByName method, IMetaDataAssemblyImport.FindAssembliesByName, IMetaDataAssemblyImport::FindAssembliesByName, rometadataapi/IMetaDataAssemblyImport::FindAssembliesByName, winrt.imetadataassemblyimport_findassembliesbyname
rometadataapi.h
Windows
Rometadataapi.idl
Windows
19H1
IMetaDataAssemblyImport::FindAssembliesByName
rometadataapi/IMetaDataAssemblyImport::FindAssembliesByName
c++
APIRef
kbSyntax
COM
rometadataapi.h
IMetaDataAssemblyImport.FindAssembliesByName

IMetaDataAssemblyImport::FindAssembliesByName

-description

Gets an array of assemblies with the specified name, using the standard rules employed by the common language runtime (CLR) for resolving references.

-parameters

-param szAppBase [in]

The root directory in which to search for the given assembly. If this value is set to null, FindAssembliesByName will look only in the global assembly cache for the assembly.

-param szPrivateBin [in]

A list of semicolon-delimited subdirectories (for example, "bin;bin2"), under the root directory, in which to search for the assembly. These directories are probed in addition to those specified in the default probing rules.

-param szAssemblyName [in]

The name of the assembly to find. The format of this string is defined in the class reference page for AssemblyName.

-param ppIUnk [out]

An array of type IUnknown in which to put the IMetadataAssemblyImport interface pointers.

-param cMax [in]

The maximum number of interface pointers that can be placed in ppIUnk.

-param pcAssemblies [out]

The number of interface pointers returned. That is, the number of interface pointers actually placed in ppIUnk.

-returns

HRESULT Description
S_OK FindAssembliesByName returned successfully.
S_FALSE There are no assemblies.

-remarks

Given an assembly name, the FindAssembliesByName method finds the assembly by following the standard rules for resolving assembly references. FindAssembliesByName allows the caller to configure various aspects of the assembly resolver context, such as application base and private search path.

FindAssembliesByName returns an IMetaDataImport pointer to the file containing the assembly manifest for the assembly name that is passed in. If the given assembly name is not fully specified (for example, if it does not include a version), multiple assemblies might be returned.

FindAssembliesByName is commonly used by a compiler that attempts to find a referenced assembly at compile time.

-see-also

IMetaDataAssemblyImport