AssemblyMetadata.CreateFromFile(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Finds all modules of an assembly on a specified path and builds an instance of AssemblyMetadata that represents them.
public:
static Microsoft::CodeAnalysis::AssemblyMetadata ^ CreateFromFile(System::String ^ path);
public static Microsoft.CodeAnalysis.AssemblyMetadata CreateFromFile (string path);
static member CreateFromFile : string -> Microsoft.CodeAnalysis.AssemblyMetadata
Public Shared Function CreateFromFile (path As String) As AssemblyMetadata
Parameters
- path
- String
The full path to the assembly on disk.
Returns
Exceptions
path
is null.
path
is invalid.
Error reading file path
. See InnerException for details.
Reading from a file path is not supported by the platform.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.