|
Este artículo se tradujo de forma manual. Mueva el puntero sobre las frases del artículo para ver el texto original.
|
Traducción
Original
|
FileVersionInfo (Clase)
Ensamblado: System (en System.dll)
El tipo FileVersionInfo expone los siguientes miembros.
| Nombre | Descripción | |
|---|---|---|
![]() | Comments | |
![]() | CompanyName | |
![]() | FileBuildPart | |
![]() | FileDescription | |
![]() | FileMajorPart | |
![]() | FileMinorPart | |
![]() | FileName | |
![]() | FilePrivatePart | |
![]() | FileVersion | |
![]() | InternalName | |
![]() | IsDebug | |
![]() | IsPatched | |
![]() | IsPreRelease | |
![]() | IsPrivateBuild | |
![]() | IsSpecialBuild | |
![]() | Language | |
![]() | LegalCopyright | |
![]() | LegalTrademarks | |
![]() | OriginalFilename | |
![]() | PrivateBuild | |
![]() | ProductBuildPart | |
![]() | ProductMajorPart | |
![]() | ProductMinorPart | |
![]() | ProductName | |
![]() | ProductPrivatePart | |
![]() | ProductVersion | |
![]() | SpecialBuild |
| Nombre | Descripción | |
|---|---|---|
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | GetHashCode | |
![]() | GetType | |
![]() ![]() | GetVersionInfo | |
![]() | MemberwiseClone | |
![]() | ToString |
Los primeros 16 bits son el número FileMajorPart. Los siguientes 16 bits son el número FileMinorPart. El tercer grupo de 16 bits son el número FileBuildPart. Los últimos 16 bits son el número FilePrivatePart.
Nota |
|---|
public: static void Main() { // Get the file version for the notepad. FileVersionInfo::GetVersionInfo(Path::Combine(Environment::SystemDirectory, "Notepad.exe")); FileVersionInfo^ myFileVersionInfo = FileVersionInfo::GetVersionInfo(Environment::SystemDirectory + "\\Notepad.exe"); // Print the file name and version number. Console::WriteLine("File: " + myFileVersionInfo->FileDescription + "\n" + "Version number: " + myFileVersionInfo->FileVersion); } }; int main() { Class1::Main(); }
- SecurityAction::LinkDemand
para que haya plena confianza para el llamador inmediato. Esta clase no puede ser utilizada por código de confianza parcial.
Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
