Types are not available in this context

You attempted to reference a type within an #If directive.

Error ID: BC30458

To correct this error

  • Remove the reference.

See Also

Reference

#If...Then...#Else Directives

Other Resources

Conditional Compilation (Visual Basic)