Megosztás a következőn keresztül:


AssemblyMetadata.CreateFromFile(String) Method

Definition

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