Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMetaDataImport2::GetVersionString method

Gets the version number of the runtime that was used to build the assembly.

Syntax


HRESULT GetVersionString(
  [out, size_is(ccBufSize), length_is(*pccBufSize)] LPWSTR pwzBuf,
  [in]                                              DWORD  ccBufSize,
  [out]                                             DWORD  *pccBufSize
);

Parameters

pwzBuf [out]

An array to store the string that specifies the version.

ccBufSize [in]

The size, in wide characters, of the pwzBuf array.

pccBufSize [out]

The number of wide characters, including a null terminator, returned in the pwzBuf array.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

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.

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport2

 

 

Show: