Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.63 KB

bc30456.md

File metadata and controls

32 lines (22 loc) · 1.63 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: '<name>' is not a member of '<classname>'
'<name>' is not a member of '<classname>'
10/10/2018
bc30456
vbc30456
BC30456
029f9742-858a-40c5-b771-7cdfb2c777cc

'<name>' is not a member of '<classname>'

The member you have provided is not a member of the class.

Error ID: BC30456

To correct this error

  1. Check the name of the member to ensure it is accurate.

  2. Use an actual member of the class.

  3. If you are attempting to compile an SDK-style project (a project with a *.vbproj file that begins with the line <Project Sdk="Microsoft.NET.Sdk">), and the error message refers to a type or member in the Microsoft.VisualBasic.dll assembly, configure your application to compile with a reference to the Visual Basic Runtime Library. By default, a subset of the library is embedded in your assembly in an SDK-style project.

    For example, the following example fails to compile because the xref:Microsoft.VisualBasic.Devices.ComputerInfo.InstalledUICulture%2A?displayProperty=fullName property cannot be found. It is not embedded in the subset of the Visual Basic Runtime included with your application.

    [!code-vbBC30456]

    To address this error, add the <VBRuntime>Default</VBRuntime> element to the projects <PropertyGroup> section, as the following Visual Basic project file shows.

    [!code-vbBC30456]