Search Results for

    Show / Hide Table of Contents

    Class ExtensionMethods

    Extension Methods

    Inheritance
    System.Object
    ExtensionMethods
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: OSGeo.MapGuide.ObjectModels
    Assembly: OSGeo.MapGuide.MaestroAPI.dll
    Syntax
    public static class ExtensionMethods

    Methods

    | Improve this Doc View Source

    CopyResourceDataTo(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

    | Improve this Doc View Source

    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

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2009 - 2022 Jackie Ng