ResourceManager.GetSatelliteContractVersion(Assembly) 方法

定义

返回给定程序集中的 SatelliteContractVersionAttribute 特性指定的版本。Returns the version specified by the SatelliteContractVersionAttribute attribute in the given assembly.

protected:
 static Version ^ GetSatelliteContractVersion(System::Reflection::Assembly ^ a);
protected static Version GetSatelliteContractVersion (System.Reflection.Assembly a);
static member GetSatelliteContractVersion : System.Reflection.Assembly -> Version
Protected Shared Function GetSatelliteContractVersion (a As Assembly) As Version

参数

a
Assembly

要检查 SatelliteContractVersionAttribute 特性的程序集。The assembly to check for the SatelliteContractVersionAttribute attribute.

返回

给定程序集的附属版本,如果未找到任何版本,则为 nullThe satellite contract version of the given assembly, or null if no version was found.

异常

在程序集 a 找到的 Version 是无效的。The Version found in the assembly a is invalid.

anulla is null.

注解

有关附属程序集版本控制的详细信息, SatelliteContractVersionAttribute请参阅参考主题。For more information about satellite assembly versioning, see the SatelliteContractVersionAttribute reference topic.

安全性

ReflectionPermission
当通过诸如InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])等机制后期绑定调用时。when invoked late-bound through mechanisms such as InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]). 关联的枚举:MemberAccessAssociated enumeration: MemberAccess.

适用于

另请参阅