Share via


Code to Export a Resource

In this example, the site-level resource that was created in Code to Create and Manipulate a Site-Level Resourceis exported to the file C:\temp\ExportedFile.txt. The resource is then deleted, and the deletion operation results are saved.

  1. Export the site-level Predictor resource to the file C:\ExportedFile.txt

    oSiteConfig.ExportResource "oPredictorAtSiteLevel", _
        "c:\ExportedFile.txt"
    
  2. Delete the site level Predictor resource and save the deletion operation results.

    oSiteConfig.DeleteComponentConfig "oPredictorAtSiteLevel"
    oSiteConfig.SaveConfig
    


All rights reserved.