MapGuide API Reference
|
virtual void MgResourceService::ApplyResourcePackage | ( | MgByteReader * | resourcePackage | ) | [pure virtual] |
Applies a package of resource changes to the repository.
virtual void ApplyResourcePackage(MgByteReader resourcePackage); |
virtual void ApplyResourcePackage(MgByteReader resourcePackage); |
virtual void ApplyResourcePackage(MgByteReader resourcePackage); |
resourcePackage | (MgByteReader) The package containing resources to update. |
// Assuming $resourceService is already initialized. $filepath = 'C:\Data\Packages\package.mgp'; $byteSource = new MgByteSource($filepath); $byteReader = $byteSource->GetReader(); $resourceService->ApplyResourcePackage($byteReader);