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. |
|
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 |
|
|
|
|
|
|
Gets an array of assemblies with the specified name, using the standard rules employed by the common language runtime (CLR) for resolving references.
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.
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.
The name of the assembly to find. The format of this string is defined in the class reference page for AssemblyName.
An array of type IUnknown in which to put the IMetadataAssemblyImport interface pointers.
The maximum number of interface pointers that can be placed in ppIUnk.
The number of interface pointers returned. That is, the number of interface pointers actually placed in ppIUnk.
HRESULT | Description |
---|---|
S_OK | FindAssembliesByName returned successfully. |
S_FALSE | There are no assemblies. |
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.