Interface IGetResourceContents
Defines a command to get a set of resource contents in a single batch
Inherited Members
Namespace: OSGeo.MapGuide.MaestroAPI.Commands
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public interface IGetResourceContents : ICommand
Examples
This example shows how invoke the IGetResourceContents command. Note that you should check if the connection supports this command through its capabilities
IServerConnection conn;
...
IGetResourceContents command = (IGetResourceContents)conn.CreateCommand(CommandType.GetResourceContents);
string [] resourceIds = new string[] {
"Library://Samples/Sheboygan/Layers/Parcels.LayerDefinition",
"Library://Samples/Sheboygan/Layers/Rail.LayerDefinition",
"Library://Samples/Sheboygan/Layers/HydrographicPolygons.LayerDefinition",
"Library://Samples/Sheboygan/Layers/CityLimits.LayerDefinition",
"Library://Samples/Sheboygan/Layers/Buildings.LayerDefinition",
"Library://Samples/Sheboygan/Layers/Roads.LayerDefinition"
};
Dictionary<string, IResource> results = command.Execute(resourceIds);
Methods
| Improve this Doc View SourceExecute(IEnumerable<String>)
Gets the resource content of the specified resources
Declaration
IDictionary<string, IResource> Execute(IEnumerable<string> resourceIds)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | resourceIds |
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, IResource> |