Método RuntimeEnvironment.GetSystemVersion ()
Dica
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.
Obtém o número de versão do Common Language Runtime que executa o processo atual.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (em mscorlib.dll)
Sintaxe
public static string GetSystemVersion()
public:
static String^ GetSystemVersion()
static member GetSystemVersion : unit -> string
Public Shared Function GetSystemVersion As String
Valor Retornado
Type: System.String
Uma cadeia de caracteres que contém o número de versão do Common Language Runtime.
Exemplos
O exemplo a seguir demonstra a chamar o GetSystemVersion método. Este exemplo de código é parte de um exemplo maior fornecido para a RuntimeEnvironment classe.
// Show the CLR's version number.
Console.WriteLine("System version: {0}", RuntimeEnvironment.GetSystemVersion());
' Show the CLR's version number.
Console.WriteLine("System version: {0}", RuntimeEnvironment.GetSystemVersion())
// Show the CLR's version number.
Console::WriteLine("System version: {0}",
RuntimeEnvironment::GetSystemVersion());
Informações de Versão
.NET Framework
Disponível desde 1.1
Confira Também
Classe RuntimeEnvironment
Namespace System.Runtime.InteropServices
Retornar ao início