Assembly.GetSatelliteAssembly 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.
Gets the satellite assembly.
Overloads
GetSatelliteAssembly(CultureInfo, Version) |
Gets the specified version of the satellite assembly for the specified culture. |
GetSatelliteAssembly(CultureInfo) |
Gets the satellite assembly for the specified culture. |
GetSatelliteAssembly(CultureInfo, Version)
- Source:
- Assembly.cs
- Source:
- Assembly.cs
- Source:
- Assembly.cs
Gets the specified version of the satellite assembly for the specified culture.
public:
virtual System::Reflection::Assembly ^ GetSatelliteAssembly(System::Globalization::CultureInfo ^ culture, Version ^ version);
public virtual System.Reflection.Assembly GetSatelliteAssembly (System.Globalization.CultureInfo culture, Version? version);
public virtual System.Reflection.Assembly GetSatelliteAssembly (System.Globalization.CultureInfo culture, Version version);
public System.Reflection.Assembly GetSatelliteAssembly (System.Globalization.CultureInfo culture, Version version);
abstract member GetSatelliteAssembly : System.Globalization.CultureInfo * Version -> System.Reflection.Assembly
override this.GetSatelliteAssembly : System.Globalization.CultureInfo * Version -> System.Reflection.Assembly
Public Overridable Function GetSatelliteAssembly (culture As CultureInfo, version As Version) As Assembly
Public Function GetSatelliteAssembly (culture As CultureInfo, version As Version) As Assembly
Parameters
- culture
- CultureInfo
The specified culture.
- version
- Version
The version of the satellite assembly.
Returns
The specified satellite assembly.
Implements
Exceptions
culture
is null
.
The satellite assembly with a matching file name was found, but the CultureInfo
or the version did not match the one specified.
The assembly cannot be found.
The satellite assembly is not a valid assembly.
Remarks
Satellite assemblies contain localized resources, as distinct from main application assemblies, which contain non-localizable executable code and resources for a single culture that serve as the default or neutral culture.
Call the GetSatelliteAssembly(CultureInfo) overload to use your current assembly version.
If version
is null
, the current assembly version is used if both the resource and main assemblies are signed.
Applies to
GetSatelliteAssembly(CultureInfo)
- Source:
- Assembly.cs
- Source:
- Assembly.cs
- Source:
- Assembly.cs
Gets the satellite assembly for the specified culture.
public:
virtual System::Reflection::Assembly ^ GetSatelliteAssembly(System::Globalization::CultureInfo ^ culture);
public virtual System.Reflection.Assembly GetSatelliteAssembly (System.Globalization.CultureInfo culture);
public System.Reflection.Assembly GetSatelliteAssembly (System.Globalization.CultureInfo culture);
abstract member GetSatelliteAssembly : System.Globalization.CultureInfo -> System.Reflection.Assembly
override this.GetSatelliteAssembly : System.Globalization.CultureInfo -> System.Reflection.Assembly
Public Overridable Function GetSatelliteAssembly (culture As CultureInfo) As Assembly
Public Function GetSatelliteAssembly (culture As CultureInfo) As Assembly
Parameters
- culture
- CultureInfo
The specified culture.
Returns
The specified satellite assembly.
Implements
Exceptions
culture
is null
.
The assembly cannot be found.
The satellite assembly with a matching file name was found, but the CultureInfo
did not match the one specified.
The satellite assembly is not a valid assembly.
Remarks
Satellite assemblies contain localized resources, as distinct from main application assemblies, which contain non-localizable executable code and resources for a single culture that serve as the default or neutral culture.
Call this method to use your current assembly version.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기