.NET Framework 4.6 and 4.5
Gets the version number of the runtime that was used to build the assembly.
HRESULT GetVersionString (
[out] LPWSTR pwzBuf,
[in] DWORD ccBufSize,
[out] DWORD *pccBufSize
[out] An array to store the string that specifies the version.
[in] The size, in wide characters, of the pwzBuf array.
[out] The number of wide characters, including a null terminator, returned in the pwzBuf array.
The GetVersionString method gets the built-for version of the current metadata scope. If the scope has never been saved, it will not have a built-for version, and an empty string will be returned.
Platforms: See .NET Framework System Requirements.
Library: Used as a resource in MsCorEE.dll
.NET Framework Versions: 4.6 RC, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0