StrongAssemblyIdentity.CreateFrom 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.
Overloads
CreateFrom(Assembly, AssemblyName) |
Gets the metadata from an assembly. |
CreateFrom(String, AssemblyName) |
Gets the metadata from an assembly at the specified path. |
CreateFrom(Assembly, AssemblyName)
- Source:
- StrongAssemblyIdentity.cs
- Source:
- StrongAssemblyIdentity.cs
Gets the metadata from an assembly.
public static Microsoft.VisualStudio.Composition.StrongAssemblyIdentity CreateFrom (System.Reflection.Assembly assembly, System.Reflection.AssemblyName assemblyName);
static member CreateFrom : System.Reflection.Assembly * System.Reflection.AssemblyName -> Microsoft.VisualStudio.Composition.StrongAssemblyIdentity
Public Shared Function CreateFrom (assembly As Assembly, assemblyName As AssemblyName) As StrongAssemblyIdentity
Parameters
- assembly
- Assembly
The assembly to read metadata from.
- assemblyName
- AssemblyName
An optional AssemblyName that may be important for dynamic assemblies to find their CodeBase.
Returns
The assembly metadata.
Applies to
CreateFrom(String, AssemblyName)
- Source:
- StrongAssemblyIdentity.cs
- Source:
- StrongAssemblyIdentity.cs
Gets the metadata from an assembly at the specified path.
public static Microsoft.VisualStudio.Composition.StrongAssemblyIdentity CreateFrom (string assemblyFile, System.Reflection.AssemblyName assemblyName);
static member CreateFrom : string * System.Reflection.AssemblyName -> Microsoft.VisualStudio.Composition.StrongAssemblyIdentity
Public Shared Function CreateFrom (assemblyFile As String, assemblyName As AssemblyName) As StrongAssemblyIdentity
Parameters
- assemblyFile
- String
The path to the assembly to read metadata from.
- assemblyName
- AssemblyName
The assembly name, if already known; otherwise null
.
Returns
The assembly metadata.
Exceptions
Thrown if assemblyFile
does not refer to an existing file.