Class ExtensionMethods
Extension Methods
Inheritance
Inherited Members
Namespace: OSGeo.MapGuide.ObjectModels
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public static class ExtensionMethods
Methods
| Improve this Doc View SourceCopyResourceDataTo(IResource, IServerConnection, IResource)
Copies the resource data to the specified resource. Both resources are assumed to originate from the same given connection
Declaration
public static void CopyResourceDataTo(this IResource source, IServerConnection conn, IResource target)
Parameters
Type | Name | Description |
---|---|---|
IResource | source | The source. |
IServerConnection | conn | The server connection |
IResource | target | The target. |
Remarks
Avoid using this method if you are copying a IFeatureSource with MG_USER_CREDENTIALS resource data, as MapGuide will automatically return the decrypted username for MG_USER_CREDENTIALS, rendering the resource data invalid for the target resource. Instead use the OSGeo.MapGuide.MaestroAPI.Services.IResourceService.CopyResource method, which will copy the resource and its resource data and keep any MG_USER_CREDENTIALS items intact
CopyResourceDataTo(IResource, IServerConnection, String)
Copies the resource data to the specified resource. Both resources are assumed to originate from the same given connection
Declaration
public static void CopyResourceDataTo(this IResource source, IServerConnection conn, string targetID)
Parameters
Type | Name | Description |
---|---|---|
IResource | source | The source. |
IServerConnection | conn | The server connection |
System.String | targetID | The target ID. |
Remarks
Avoid using this method if you are copying a IFeatureSource with MG_USER_CREDENTIALS resource data, as MapGuide will automatically return the decrypted username for MG_USER_CREDENTIALS, rendering the resource data invalid for the target resource. Instead use the OSGeo.MapGuide.MaestroAPI.Services.IResourceService.CopyResource method, which will copy the resource and its resource data and keep any MG_USER_CREDENTIALS items intact