text: ---
  title: "'<name>' is not a member of '<classname>'"
  ms.date: 10/10/2018
  f1_keywords: 
    - "bc30456"
    - "vbc30456"
  helpviewer_keywords: 
    - "BC30456"
  ms.assetid: 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-vb[BC30456](~/samples/snippets/visualbasic/language-reference/error-messages/bc30456/program.vb)]
  
     To address this error, add the `<VBRuntime>Default</VBRuntime>` element to the projects `<PropertyGroup>` section, as the following Visual Basic project file shows.
  
     [!code-vb[BC30456](~/samples/snippets/visualbasic/language-reference/error-messages/bc30456/bc30456.vbproj?highlight=6)]
  