public static AssemblyName GetAssemblyName(string assemblyFile) { if (assemblyFile == null) { throw new ArgumentNullException("assemblyFile"); } string fullPathInternal = Path.GetFullPathInternal(assemblyFile); new FileIOPermission(FileIOPermissionAccess.PathDiscovery, fullPathInternal).Demand(); return(AssemblyName.nGetFileInformation(fullPathInternal)); }
/// <include file='doc\AssemblyNameProxy.uex' path='docs/doc[@for="AssemblyNameProxy.GetAssemblyName"]/*' /> public AssemblyName GetAssemblyName(String assemblyFile) { return(AssemblyName.nGetFileInformation(assemblyFile)); }