locked
Error_1_Type 'StorageFolder' is not defined. RRS feed

  • Question

  •  I am trying to copy code from the WebViewer navigate to file example. I was able to apply the rest, but I am stuck with StorageFolder and StorageFile.

    In the example, this works fine and StorageFolder is blue

    Dim stateFolder As StorageFolder


    When I copy to my app, I get "Error 1 Type 'StorageFolder' is not defined."

    I looked everywhere in the example to understand where StorageFolder is defined but could not find it.

    Neither did the "Find in Files" for "StorageFile"

    Help ! What must I do ? I'm using VB.

    Monday, December 16, 2013 9:15 PM

Answers

  • You need to change StorageFile to Windows.Storage.StorageFile or add "Import Windows.Storage" to your page.

    If you click on the red rectangle under the Storage File or Ctrl+. from the keyboard you will get a context menu offering different ways to fix this for you.

    --Rob

    • Marked as answer by Mitchb00 Monday, December 16, 2013 10:20 PM
    Monday, December 16, 2013 9:50 PM
    Moderator

All replies

  • You need to change StorageFile to Windows.Storage.StorageFile or add "Import Windows.Storage" to your page.

    If you click on the red rectangle under the Storage File or Ctrl+. from the keyboard you will get a context menu offering different ways to fix this for you.

    --Rob

    • Marked as answer by Mitchb00 Monday, December 16, 2013 10:20 PM
    Monday, December 16, 2013 9:50 PM
    Moderator
  • Rob, you saved my day ! Thank you !
    Monday, December 16, 2013 10:21 PM