Search Results for

    Show / Hide Table of Contents

    Class PlatformConnectionBase

    Base class of all connection classes. Covers functionality encompassed by the MapGuide Geospatial Platform API (ie. Feature Service and Resource Service)

    Inheritance
    System.Object
    PlatformConnectionBase
    MgServerConnectionBase
    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.MaestroAPI
    Assembly: OSGeo.MapGuide.MaestroAPI.dll
    Syntax
    public abstract class PlatformConnectionBase

    Constructors

    | Improve this Doc View Source

    PlatformConnectionBase()

    Initializes a new instance of the PlatformConnectionBase class.

    Declaration
    protected PlatformConnectionBase()

    Fields

    | Improve this Doc View Source

    m_cachedSchemas

    A lookup table for Xsd Schemas

    Declaration
    protected Hashtable m_cachedSchemas
    Field Value
    Type Description
    System.Collections.Hashtable
    | Improve this Doc View Source

    m_classDefinitionCache

    a class definition cache

    Declaration
    protected Dictionary<string, ClassDefinition> m_classDefinitionCache
    Field Value
    Type Description
    System.Collections.Generic.Dictionary<System.String, ClassDefinition>
    | Improve this Doc View Source

    m_disableValidation

    A flag indicating if Xsd validation is perfomed

    Declaration
    protected bool m_disableValidation
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    m_featureSchemaCache

    feature source description cache

    Declaration
    protected Dictionary<string, FeatureSourceDescription> m_featureSchemaCache
    Field Value
    Type Description
    System.Collections.Generic.Dictionary<System.String, FeatureSourceDescription>
    | Improve this Doc View Source

    m_schemasPath

    The path of Xsd schemas

    Declaration
    protected string m_schemasPath
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    m_serializers

    A list of cached serializers

    Declaration
    protected Hashtable m_serializers
    Field Value
    Type Description
    System.Collections.Hashtable
    | Improve this Doc View Source

    m_validator

    The current XML validator

    Declaration
    protected XmlValidator m_validator
    Field Value
    Type Description
    XmlValidator

    Properties

    | Improve this Doc View Source

    CachedSchemas

    Gets or sets the collection of cached schemas. Use the object type for key, and an XmlSchema instance for value.

    Declaration
    public virtual Hashtable CachedSchemas { get; set; }
    Property Value
    Type Description
    System.Collections.Hashtable
    | Improve this Doc View Source

    CacheStats

    Gets the cache stats for the current connection

    Declaration
    public ConnectionCacheStats CacheStats { get; }
    Property Value
    Type Description
    ConnectionCacheStats
    | Improve this Doc View Source

    CloneParameters

    Gets a collection of name-value parameters required to create another copy of this connection via the ConnectionProviderRegistry

    Declaration
    public abstract NameValueCollection CloneParameters { get; }
    Property Value
    Type Description
    System.Collections.Specialized.NameValueCollection
    | Improve this Doc View Source

    DisableValidation

    Gets or sets a flag that indicates if the Xml resources are validated before leaving and entering the server.

    Declaration
    public bool DisableValidation { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    FeatureProviders

    Gets a list of installed feature providers

    Declaration
    public abstract FeatureProviderRegistryFeatureProvider[] FeatureProviders { get; }
    Property Value
    Type Description
    FeatureProviderRegistryFeatureProvider[]
    | Improve this Doc View Source

    MaxTestedVersion

    Gets the highest version the API is currently tested againts

    Declaration
    public virtual Version MaxTestedVersion { get; }
    Property Value
    Type Description
    System.Version
    | Improve this Doc View Source

    ProviderName

    Gets the name of the provider of this implementation

    Declaration
    public abstract string ProviderName { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    SessionID

    Gets the current SessionID.

    Declaration
    public abstract string SessionID { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    SiteVersion

    Gets the site version.

    Declaration
    public abstract Version SiteVersion { get; }
    Property Value
    Type Description
    System.Version

    The site version.

    Methods

    | Improve this Doc View Source

    AggregateQueryFeatureSource(String, String, String)

    Performs an aggregate query on all columns in the datasource

    Declaration
    public virtual IReader AggregateQueryFeatureSource(string resourceID, string schema, string filter)
    Parameters
    Type Name Description
    System.String resourceID

    The resourceID of the FeatureSource to query

    System.String schema

    The schema name

    System.String filter

    The filter to apply to the

    Returns
    Type Description
    IReader

    A FeatureSetReader with the aggregated values

    | Improve this Doc View Source

    AggregateQueryFeatureSource(String, String, String, NameValueCollection)

    Performs an aggregate query on computed resources

    Declaration
    public abstract IReader AggregateQueryFeatureSource(string resourceID, string schema, string filter, NameValueCollection aggregateFunctions)
    Parameters
    Type Name Description
    System.String resourceID

    The resourceID of the FeatureSource to query

    System.String schema

    The schema name

    System.String filter

    The filter to apply to the

    System.Collections.Specialized.NameValueCollection aggregateFunctions

    A collection of column name and aggregate functions

    Returns
    Type Description
    IReader

    A FeatureSetReader with the aggregated values

    | Improve this Doc View Source

    AggregateQueryFeatureSource(String, String, String, String[])

    Performs an aggregate query on columns in the datasource

    Declaration
    public abstract IReader AggregateQueryFeatureSource(string resourceID, string schema, string filter, string[] columns)
    Parameters
    Type Name Description
    System.String resourceID

    The resourceID of the FeatureSource to query

    System.String schema

    The schema name

    System.String filter

    The filter to apply to the

    System.String[] columns

    The columns to aggregate

    Returns
    Type Description
    IReader

    A IFeatureReader with the aggregated values

    | Improve this Doc View Source

    Clone()

    Clones this instance.

    Declaration
    public abstract IServerConnection Clone()
    Returns
    Type Description
    IServerConnection
    | Improve this Doc View Source

    CopyFolder(String, String, Boolean)

    Copies a folder and all its content. This does not update any references.

    Declaration
    public abstract void CopyFolder(string oldpath, string newpath, bool overwrite)
    Parameters
    Type Name Description
    System.String oldpath

    The current folder path, the one copying from

    System.String newpath

    The new folder path, the one copying to

    System.Boolean overwrite

    True if the copy can overwrite an existing folder, false otherwise

    | Improve this Doc View Source

    CopyFolderWithReferences(String, String, LengthyOperationCallBack, LengthyOperationProgressCallBack)

    Copies folder, and subsequently updates all resources within the folder to use the new folder path instead of the originating one.

    Declaration
    public bool CopyFolderWithReferences(string oldpath, string newpath, LengthyOperationCallBack callback, LengthyOperationProgressCallBack progress)
    Parameters
    Type Name Description
    System.String oldpath

    The current folder path, the one copying from

    System.String newpath

    The new folder path, the one copying to

    LengthyOperationCallBack callback

    A callback delegate, being called for non progress reporting events.

    LengthyOperationProgressCallBack progress

    A callback delegate, being called for progress reporting events.

    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    CopyResource(String, String, Boolean)

    Copies a resource from one location to another. This does not update any references.

    Declaration
    public abstract void CopyResource(string oldpath, string newpath, bool overwrite)
    Parameters
    Type Name Description
    System.String oldpath

    The current resource path, the one copying from

    System.String newpath

    The new resource path, the one copying to

    System.Boolean overwrite

    True if the copy can overwrite an existing resource, false otherwise

    | Improve this Doc View Source

    CreateCommand(Int32)

    Creates the command.

    Declaration
    public virtual ICommand CreateCommand(int cmdType)
    Parameters
    Type Name Description
    System.Int32 cmdType

    Type of the CMD.

    Returns
    Type Description
    ICommand
    | Improve this Doc View Source

    CreateFolder(String)

    Creates a folder on the server

    Declaration
    public virtual void CreateFolder(string resourceID)
    Parameters
    Type Name Description
    System.String resourceID

    The path of the folder to create

    | Improve this Doc View Source

    CreateGeometryReader()

    Creates a geometry text reader for creating IGeometryRef instances from WKT text

    Declaration
    public virtual IGeometryTextReader CreateGeometryReader()
    Returns
    Type Description
    IGeometryTextReader
    | Improve this Doc View Source

    CreateMap(IMapDefinition)

    Creates a new runtime map instance from an existing map definition. The runtime map resource id is calculated from the current session id and the name component of the Map Definition resource id

    Declaration
    public RuntimeMap CreateMap(IMapDefinition mdf)
    Parameters
    Type Name Description
    IMapDefinition mdf
    Returns
    Type Description
    RuntimeMap
    | Improve this Doc View Source

    CreateMap(IMapDefinition, Boolean)

    Creates a new runtime map instance from an existing map definition. The runtime map resource id is calculated from the current session id and the name component of the Map Definition resource id

    Declaration
    public RuntimeMap CreateMap(IMapDefinition mdf, bool suppressErrors)
    Parameters
    Type Name Description
    IMapDefinition mdf
    System.Boolean suppressErrors
    Returns
    Type Description
    RuntimeMap
    | Improve this Doc View Source

    CreateMap(IMapDefinition, Double)

    Creates a new runtime map instance from an existing map definition. The runtime map resource id is calculated from the current session id and the name component of the Map Definition resource id

    Declaration
    public RuntimeMap CreateMap(IMapDefinition mdf, double metersPerUnit)
    Parameters
    Type Name Description
    IMapDefinition mdf

    The map definition.

    System.Double metersPerUnit

    The meters per unit.

    Returns
    Type Description
    RuntimeMap
    | Improve this Doc View Source

    CreateMap(IMapDefinition, Double, Boolean)

    Creates a new runtime map instance from an existing map definition. The runtime map resource id is calculated from the current session id and the name component of the Map Definition resource id

    Declaration
    public RuntimeMap CreateMap(IMapDefinition mdf, double metersPerUnit, bool suppressErrors)
    Parameters
    Type Name Description
    IMapDefinition mdf

    The map definition.

    System.Double metersPerUnit

    The meters per unit.

    System.Boolean suppressErrors
    Returns
    Type Description
    RuntimeMap
    | Improve this Doc View Source

    CreateMap(String, IMapDefinition)

    Creates a new runtime map instance from an existing map definition. Meters per unit is calculated from the Coordinate System WKT of the map definition.

    Declaration
    public RuntimeMap CreateMap(string runtimeMapResourceId, IMapDefinition mdf)
    Parameters
    Type Name Description
    System.String runtimeMapResourceId
    IMapDefinition mdf
    Returns
    Type Description
    RuntimeMap
    Remarks

    Calculation of meters-per-unit may differ between implementations. This may have an adverse effect on things such as rendering and measuring depending on the underlying implementation

    If you are certain of the meters-per-unit value required, use the overloaded method that accepts a metersPerUnit parameter.

    | Improve this Doc View Source

    CreateMap(String, IMapDefinition, Boolean)

    Creates a new runtime map instance from an existing map definition. Meters per unit is calculated from the Coordinate System WKT of the map definition.

    Declaration
    public RuntimeMap CreateMap(string runtimeMapResourceId, IMapDefinition mdf, bool suppressErrors)
    Parameters
    Type Name Description
    System.String runtimeMapResourceId
    IMapDefinition mdf
    System.Boolean suppressErrors
    Returns
    Type Description
    RuntimeMap
    Remarks

    Calculation of meters-per-unit may differ between implementations. This may have an adverse effect on things such as rendering and measuring depending on the underlying implementation

    If you are certain of the meters-per-unit value required, use the overloaded method that accepts a metersPerUnit parameter.

    | Improve this Doc View Source

    CreateMap(String, IMapDefinition, Double)

    Creates a new runtime map instance from an existing map definition

    Declaration
    public virtual RuntimeMap CreateMap(string runtimeMapResourceId, IMapDefinition mdf, double metersPerUnit)
    Parameters
    Type Name Description
    System.String runtimeMapResourceId
    IMapDefinition mdf
    System.Double metersPerUnit
    Returns
    Type Description
    RuntimeMap
    | Improve this Doc View Source

    CreateMap(String, IMapDefinition, Double, Boolean)

    Creates a new runtime map instance from an existing map definition

    Declaration
    public virtual RuntimeMap CreateMap(string runtimeMapResourceId, IMapDefinition mdf, double metersPerUnit, bool suppressErrors)
    Parameters
    Type Name Description
    System.String runtimeMapResourceId
    IMapDefinition mdf
    System.Double metersPerUnit
    System.Boolean suppressErrors
    Returns
    Type Description
    RuntimeMap
    | Improve this Doc View Source

    CreateMap(String, String)

    Creates a new runtime map instance from an existing map definition. Meters per unit is calculated from the Coordinate System WKT of the map definition.

    Declaration
    public RuntimeMap CreateMap(string runtimeMapResourceId, string baseMapDefinitionId)
    Parameters
    Type Name Description
    System.String runtimeMapResourceId
    System.String baseMapDefinitionId
    Returns
    Type Description
    RuntimeMap
    Remarks

    Calculation of meters-per-unit may differ between implementations. This may have an adverse effect on things such as rendering and measuring depending on the underlying implementation

    If you are certain of the meters-per-unit value required, use the overloaded method that accepts a metersPerUnit parameter.

    | Improve this Doc View Source

    CreateMap(String, String, Boolean)

    Creates a new runtime map instance from an existing map definition. Meters per unit is calculated from the Coordinate System WKT of the map definition.

    Declaration
    public RuntimeMap CreateMap(string runtimeMapResourceId, string baseMapDefinitionId, bool suppressErrors)
    Parameters
    Type Name Description
    System.String runtimeMapResourceId
    System.String baseMapDefinitionId
    System.Boolean suppressErrors
    Returns
    Type Description
    RuntimeMap
    Remarks

    Calculation of meters-per-unit may differ between implementations. This may have an adverse effect on things such as rendering and measuring depending on the underlying implementation

    If you are certain of the meters-per-unit value required, use the overloaded method that accepts a metersPerUnit parameter.

    | Improve this Doc View Source

    CreateMap(String, String, Double)

    Creates a new runtime map instance from an existing map definition

    Declaration
    public virtual RuntimeMap CreateMap(string runtimeMapResourceId, string baseMapDefinitionId, double metersPerUnit)
    Parameters
    Type Name Description
    System.String runtimeMapResourceId
    System.String baseMapDefinitionId
    System.Double metersPerUnit
    Returns
    Type Description
    RuntimeMap
    | Improve this Doc View Source

    CreateMap(String, String, Double, Boolean)

    Creates a new runtime map instance from an existing map definition

    Declaration
    public virtual RuntimeMap CreateMap(string runtimeMapResourceId, string baseMapDefinitionId, double metersPerUnit, bool suppressErrors)
    Parameters
    Type Name Description
    System.String runtimeMapResourceId
    System.String baseMapDefinitionId
    System.Double metersPerUnit
    System.Boolean suppressErrors
    Returns
    Type Description
    RuntimeMap
    | Improve this Doc View Source

    CreateMapGroup(RuntimeMap, IBaseMapGroup)

    Creates a new runtime map group

    Declaration
    public virtual RuntimeMapGroup CreateMapGroup(RuntimeMap parent, IBaseMapGroup group)
    Parameters
    Type Name Description
    RuntimeMap parent

    The map.

    IBaseMapGroup group

    The group.

    Returns
    Type Description
    RuntimeMapGroup
    | Improve this Doc View Source

    CreateMapGroup(RuntimeMap, IMapLayerGroup)

    Creates a new runtime map group

    Declaration
    public virtual RuntimeMapGroup CreateMapGroup(RuntimeMap parent, IMapLayerGroup group)
    Parameters
    Type Name Description
    RuntimeMap parent

    The parent runtime map. The runtime map must have been created or opened from this same service instance

    IMapLayerGroup group

    The group.

    Returns
    Type Description
    RuntimeMapGroup
    | Improve this Doc View Source

    CreateMapGroup(RuntimeMap, String)

    Creates the map group.

    Declaration
    public virtual RuntimeMapGroup CreateMapGroup(RuntimeMap parent, string name)
    Parameters
    Type Name Description
    RuntimeMap parent

    The parent runtime map. The runtime map must have been created or opened from this same service instance

    System.String name

    The name.

    Returns
    Type Description
    RuntimeMapGroup
    | Improve this Doc View Source

    CreateMapLayer(RuntimeMap, ILayerDefinition)

    Creates a new runtime map layer from the specified Layer Definition

    Declaration
    public virtual RuntimeMapLayer CreateMapLayer(RuntimeMap parent, ILayerDefinition ldf)
    Parameters
    Type Name Description
    RuntimeMap parent

    The parent runtime map. The runtime map must have been created or opened from this same service instance

    ILayerDefinition ldf

    The layer definition

    Returns
    Type Description
    RuntimeMapLayer
    | Improve this Doc View Source

    CreateMapLayer(RuntimeMap, ILayerDefinition, Boolean)

    Creates a new runtime map layer from the specified Layer Definition

    Declaration
    public virtual RuntimeMapLayer CreateMapLayer(RuntimeMap parent, ILayerDefinition ldf, bool suppressErrors)
    Parameters
    Type Name Description
    RuntimeMap parent

    The parent runtime map. The runtime map must have been created or opened from this same service instance

    ILayerDefinition ldf

    The layer definition

    System.Boolean suppressErrors
    Returns
    Type Description
    RuntimeMapLayer
    | Improve this Doc View Source

    CreateMapLayer(RuntimeMap, IBaseMapLayer)

    Creates a new runtime map layer from the specified IBaseMapLayer instance

    Declaration
    public RuntimeMapLayer CreateMapLayer(RuntimeMap parent, IBaseMapLayer source)
    Parameters
    Type Name Description
    RuntimeMap parent

    The parent runtime map. The runtime map must have been created or opened from this same service instance

    IBaseMapLayer source

    The map definition layer

    Returns
    Type Description
    RuntimeMapLayer
    | Improve this Doc View Source

    CreateMapLayer(RuntimeMap, IBaseMapLayer, Boolean)

    Creates a new runtime map layer from the specified IBaseMapLayer instance

    Declaration
    public RuntimeMapLayer CreateMapLayer(RuntimeMap parent, IBaseMapLayer source, bool suppressErrors)
    Parameters
    Type Name Description
    RuntimeMap parent

    The parent runtime map. The runtime map must have been created or opened from this same service instance

    IBaseMapLayer source

    The map definition layer

    System.Boolean suppressErrors
    Returns
    Type Description
    RuntimeMapLayer
    | Improve this Doc View Source

    CreateMapLayer(RuntimeMap, IMapLayer)

    Creates a new runtime map layer from the specified IBaseMapLayer instance

    Declaration
    public RuntimeMapLayer CreateMapLayer(RuntimeMap parent, IMapLayer source)
    Parameters
    Type Name Description
    RuntimeMap parent

    The parent runtime map. The runtime map must have been created or opened from this same service instance

    IMapLayer source

    The map definition layer

    Returns
    Type Description
    RuntimeMapLayer
    | Improve this Doc View Source

    CreateMapLayer(RuntimeMap, IMapLayer, Boolean)

    Creates a new runtime map layer from the specified IBaseMapLayer instance

    Declaration
    public RuntimeMapLayer CreateMapLayer(RuntimeMap parent, IMapLayer source, bool suppressErrors)
    Parameters
    Type Name Description
    RuntimeMap parent

    The parent runtime map. The runtime map must have been created or opened from this same service instance

    IMapLayer source

    The map definition layer

    System.Boolean suppressErrors
    Returns
    Type Description
    RuntimeMapLayer
    | Improve this Doc View Source

    DeleteResource(String)

    Deletes the resource.

    Declaration
    public abstract void DeleteResource(string resourceID)
    Parameters
    Type Name Description
    System.String resourceID

    The resourceid.

    | Improve this Doc View Source

    DescribeFeatureSource(String)

    Gets the feature source description.

    Declaration
    public virtual FeatureSourceDescription DescribeFeatureSource(string resourceID)
    Parameters
    Type Name Description
    System.String resourceID

    The resource ID.

    Returns
    Type Description
    FeatureSourceDescription
    | Improve this Doc View Source

    DescribeFeatureSource(String, String)

    Describes the feature source.

    Declaration
    public abstract FeatureSchema DescribeFeatureSource(string resourceID, string schema)
    Parameters
    Type Name Description
    System.String resourceID

    The resource ID.

    System.String schema

    The schema.

    Returns
    Type Description
    FeatureSchema
    | Improve this Doc View Source

    DescribeFeatureSourceInternal(String)

    Calls the actual implementation of the DescribeFeatureSource API

    Declaration
    protected abstract FeatureSourceDescription DescribeFeatureSourceInternal(string resourceId)
    Parameters
    Type Name Description
    System.String resourceId
    Returns
    Type Description
    FeatureSourceDescription
    | Improve this Doc View Source

    DescribeFeatureSourcePartial(String, String, String[])

    Describes the specified feature source restricted to only the specified schema and the specified class names

    Declaration
    public abstract FeatureSchema DescribeFeatureSourcePartial(string resourceID, string schema, string[] classNames)
    Parameters
    Type Name Description
    System.String resourceID
    System.String schema
    System.String[] classNames
    Returns
    Type Description
    FeatureSchema
    | Improve this Doc View Source

    DeserializeObject(Type, Stream)

    Deserializes an object from a stream.

    Declaration
    public virtual object DeserializeObject(Type type, Stream data)
    Parameters
    Type Name Description
    System.Type type

    The expected object type

    System.IO.Stream data

    The stream containing the object

    Returns
    Type Description
    System.Object

    The deserialized object

    | Improve this Doc View Source

    DeserializeObject<T>(Stream)

    Deserializes an object from a stream.

    Declaration
    public virtual T DeserializeObject<T>(Stream data)
    Parameters
    Type Name Description
    System.IO.Stream data

    The stream containing the object

    Returns
    Type Description
    T

    The deserialized object

    Type Parameters
    Name Description
    T

    The expected object type

    | Improve this Doc View Source

    Dispose()

    Releases unmanaged and - optionally - managed resources

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Dispose(Boolean)

    Dispose of this instance

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    | Improve this Doc View Source

    EnumerateDataStores(String, String)

    Enumerates the data stores.

    Declaration
    public abstract DataStoreList EnumerateDataStores(string providerName, string partialConnString)
    Parameters
    Type Name Description
    System.String providerName

    Name of the provider.

    System.String partialConnString

    The partial conn string.

    Returns
    Type Description
    DataStoreList
    | Improve this Doc View Source

    EnumerateResourceReferences(String)

    Enumereates all references to a given resource

    Declaration
    public abstract ResourceReferenceList EnumerateResourceReferences(string resourceid)
    Parameters
    Type Name Description
    System.String resourceid

    The resource to enumerate references for

    Returns
    Type Description
    ResourceReferenceList

    A list of resources that reference the given resourceID

    | Improve this Doc View Source

    EnumerateUnmanagedData(String, String, Boolean, UnmanagedDataTypes)

    Enumerates all unmanaged folders, meaning alias'ed folders

    Declaration
    public abstract UnmanagedDataList EnumerateUnmanagedData(string startpath, string filter, bool recursive, UnmanagedDataTypes type)
    Parameters
    Type Name Description
    System.String startpath

    The path to retrieve the data from

    System.String filter

    A filter applied to the items

    System.Boolean recursive

    True if the list should contains recursive results

    UnmanagedDataTypes type

    The type of data to return

    Returns
    Type Description
    UnmanagedDataList

    A list of unmanaged data

    | Improve this Doc View Source

    ExecuteLoadProcedure(ILoadProcedure, LengthyOperationProgressCallBack, Boolean)

    Executes the load procedure.

    Declaration
    public virtual string[] ExecuteLoadProcedure(ILoadProcedure loadProc, LengthyOperationProgressCallBack callback, bool ignoreUnsupported)
    Parameters
    Type Name Description
    ILoadProcedure loadProc

    The load proc.

    LengthyOperationProgressCallBack callback

    The callback.

    System.Boolean ignoreUnsupported

    if set to true [ignore unsupported].

    Returns
    Type Description
    System.String[]

    An array of resource IDs that were created from the execution of this load procedure

    | Improve this Doc View Source

    ExecuteLoadProcedure(String, LengthyOperationProgressCallBack, Boolean)

    Executes the load procedure.

    Declaration
    public virtual string[] ExecuteLoadProcedure(string resourceID, LengthyOperationProgressCallBack callback, bool ignoreUnsupported)
    Parameters
    Type Name Description
    System.String resourceID

    The resource ID.

    LengthyOperationProgressCallBack callback

    The callback.

    System.Boolean ignoreUnsupported

    if set to true [ignore unsupported].

    Returns
    Type Description
    System.String[]
    | Improve this Doc View Source

    Finalize()

    Finalizer

    Declaration
    protected void Finalize()
    | Improve this Doc View Source

    FixAndValidateFolderPath(String)

    Validates the origin of the folder, and ensures the folder path has a trailing slash.

    Declaration
    protected virtual string FixAndValidateFolderPath(string folderpath)
    Parameters
    Type Name Description
    System.String folderpath

    The path to validate and fix

    Returns
    Type Description
    System.String

    The fixed path

    | Improve this Doc View Source

    GetCalculator()

    Gets the MPU calculator

    Declaration
    public virtual IMpuCalculator GetCalculator()
    Returns
    Type Description
    IMpuCalculator
    | Improve this Doc View Source

    GetClassDefinition(String, String)

    Gets the class definition.

    Declaration
    public virtual ClassDefinition GetClassDefinition(string resourceID, string className)
    Parameters
    Type Name Description
    System.String resourceID

    The resource ID.

    System.String className

    The class name to look for.

    Returns
    Type Description
    ClassDefinition
    | Improve this Doc View Source

    GetClassDefinitionInternal(String, String, String)

    Fetches the specified class definition

    Declaration
    protected abstract ClassDefinition GetClassDefinitionInternal(string resourceId, string schemaName, string className)
    Parameters
    Type Name Description
    System.String resourceId
    System.String schemaName
    System.String className
    Returns
    Type Description
    ClassDefinition
    | Improve this Doc View Source

    GetClassNames(String, String)

    Gets the class names.

    Declaration
    public abstract string[] GetClassNames(string resourceId, string schemaName)
    Parameters
    Type Name Description
    System.String resourceId

    The resource id.

    System.String schemaName

    Name of the schema.

    Returns
    Type Description
    System.String[]
    | Improve this Doc View Source

    GetCustomProperty(String)

    Gets the custom property.

    Declaration
    public abstract object GetCustomProperty(string name)
    Parameters
    Type Name Description
    System.String name

    The name.

    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    GetCustomPropertyNames()

    Gets the custom property names.

    Declaration
    public abstract string[] GetCustomPropertyNames()
    Returns
    Type Description
    System.String[]
    | Improve this Doc View Source

    GetCustomPropertyType(String)

    Gets the type of the custom property.

    Declaration
    public abstract Type GetCustomPropertyType(string name)
    Parameters
    Type Name Description
    System.String name

    The name.

    Returns
    Type Description
    System.Type
    | Improve this Doc View Source

    GetFeatureProvider(String)

    Returns an installed provider, given the name of the provider

    Declaration
    public virtual FeatureProviderRegistryFeatureProvider GetFeatureProvider(string providername)
    Parameters
    Type Name Description
    System.String providername

    The name of the provider

    Returns
    Type Description
    FeatureProviderRegistryFeatureProvider

    The first matching provider or null

    | Improve this Doc View Source

    GetFolderHeader(String)

    Gets the folder header.

    Declaration
    public virtual ResourceFolderHeaderType GetFolderHeader(string resourceID)
    Parameters
    Type Name Description
    System.String resourceID

    The resource ID.

    Returns
    Type Description
    ResourceFolderHeaderType
    | Improve this Doc View Source

    GetFolderOrResourceHeader(String)

    Gets the folder or resource header.

    Declaration
    public abstract object GetFolderOrResourceHeader(string resourceId)
    Parameters
    Type Name Description
    System.String resourceId

    The resource id.

    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    GetIdentityProperties(String, String)

    Gets the names of the identity properties from a feature

    Declaration
    public abstract string[] GetIdentityProperties(string resourceID, string classname)
    Parameters
    Type Name Description
    System.String resourceID

    The resourceID for the FeatureSource

    System.String classname

    The classname of the feature, including schema

    Returns
    Type Description
    System.String[]

    A string array with the found identities

    | Improve this Doc View Source

    GetInterface()

    Gets the interface of this connection

    Declaration
    protected abstract IServerConnection GetInterface()
    Returns
    Type Description
    IServerConnection
    | Improve this Doc View Source

    GetLongTransactions(String, Boolean)

    Gets the long transactions for the specified feature source

    Declaration
    public abstract ILongTransactionList GetLongTransactions(string resourceId, bool activeOnly)
    Parameters
    Type Name Description
    System.String resourceId

    The feature source id

    System.Boolean activeOnly

    If true, will only return active long transactions

    Returns
    Type Description
    ILongTransactionList
    | Improve this Doc View Source

    GetPreviewUrlGenerator()

    Gets the preview URL generator.

    Declaration
    public virtual IResourcePreviewUrlGenerator GetPreviewUrlGenerator()
    Returns
    Type Description
    IResourcePreviewUrlGenerator

    The preview URL generator. Returns null if this connection does not support browser-based resource previews

    | Improve this Doc View Source

    GetRepositoryResources()

    Gets a full list of resources in the permanent server repository (Library). This method returns the full catalog and should be used sparringly.

    Declaration
    public virtual ResourceList GetRepositoryResources()
    Returns
    Type Description
    ResourceList

    A list of contained resources

    | Improve this Doc View Source

    GetRepositoryResources(Int32)

    Gets a list of resources in the permanent server repository (Library). This method limits folder recursion to the specified depth.

    Declaration
    public virtual ResourceList GetRepositoryResources(int depth)
    Parameters
    Type Name Description
    System.Int32 depth

    The max depth to recurse. Use -1 for no limit.

    Returns
    Type Description
    ResourceList

    A list of contained resources

    | Improve this Doc View Source

    GetRepositoryResources(String)

    Gets a list of resources in the permanent server repository (Library). This method limits folder recursion to the specified depth.

    Declaration
    public virtual ResourceList GetRepositoryResources(string startingpoint)
    Parameters
    Type Name Description
    System.String startingpoint

    The folder from which to return items. Use null for "Library://"

    Returns
    Type Description
    ResourceList

    A list of contained resources

    | Improve this Doc View Source

    GetRepositoryResources(String, Int32)

    Gets a list of resources in the permanent server repository (Library). This method limits folder recursion to the specified depth.

    Declaration
    public virtual ResourceList GetRepositoryResources(string startingpoint, int depth)
    Parameters
    Type Name Description
    System.String startingpoint

    The folder from which to return items. Use null for "Library://"

    System.Int32 depth

    The max depth to recurse. Use -1 for no limit.

    Returns
    Type Description
    ResourceList

    A list of contained resources

    | Improve this Doc View Source

    GetRepositoryResources(String, String)

    Gets a list of resources in the permanent server repository (Library). This method limits folder recursion to the specified depth.

    Declaration
    public virtual ResourceList GetRepositoryResources(string startingpoint, string type)
    Parameters
    Type Name Description
    System.String startingpoint

    The folder from which to return items. Use null for "Library://"

    System.String type

    The type of resource to look for. Basically this is the resource extension, like ".MapDefinition". Use null for all resources.

    Returns
    Type Description
    ResourceList

    A list of contained resources

    | Improve this Doc View Source

    GetRepositoryResources(String, String, Int32)

    Gets a list of resources in the permanent server repository (Library). This method limits folder recursion to the specified depth.

    Declaration
    public ResourceList GetRepositoryResources(string startingpoint, string type, int depth)
    Parameters
    Type Name Description
    System.String startingpoint

    The folder from which to return items. Use null for "Library://"

    System.String type

    The type of resource to look for. Basically this is the resource extension, like ".MapDefinition". Use null for all resources.

    System.Int32 depth

    The max depth to recurse. Use -1 for no limit.

    Returns
    Type Description
    ResourceList

    A list of contained resources

    | Improve this Doc View Source

    GetRepositoryResources(String, String, Int32, Boolean)

    Gets a list of resources in the permanent server repository (Library).

    Declaration
    public abstract ResourceList GetRepositoryResources(string startingpoint, string type, int depth, bool computeChildren)
    Parameters
    Type Name Description
    System.String startingpoint

    The folder from which to return items. Use null for "Library://"

    System.String type

    The type of resource to look for. Basically this is the resource extension, like ".MapDefinition". Use null for all resources.

    System.Int32 depth

    The max depth to recurse. Use -1 for no limit.

    System.Boolean computeChildren

    A flag indicating if the count of subfolders and resources should be calculated for leaf nodes

    Returns
    Type Description
    ResourceList

    A list of contained resources

    | Improve this Doc View Source

    GetResource(String)

    Returns an object deserialized from server data. Uses the ResourceID to infer the object type.

    Declaration
    public virtual IResource GetResource(string resourceID)
    Parameters
    Type Name Description
    System.String resourceID

    The full resourceID of the item to retrieve.

    Returns
    Type Description
    IResource

    A deserialized object.

    | Improve this Doc View Source

    GetResourceData(String, String)

    Returns data from a resource as a memorystream

    Declaration
    public abstract Stream GetResourceData(string resourceID, string dataname)
    Parameters
    Type Name Description
    System.String resourceID

    The id of the resource to fetch data from

    System.String dataname

    The name of the associated data item

    Returns
    Type Description
    System.IO.Stream

    A stream containing the references resource data

    | Improve this Doc View Source

    GetResourceHeader(String)

    Gets the resource header.

    Declaration
    public virtual ResourceDocumentHeaderType GetResourceHeader(string resourceID)
    Parameters
    Type Name Description
    System.String resourceID

    The resource ID.

    Returns
    Type Description
    ResourceDocumentHeaderType
    | Improve this Doc View Source

    GetResourceXmlData(String)

    Returns raw data from the server a byte array

    Declaration
    public abstract Stream GetResourceXmlData(string resourceID)
    Parameters
    Type Name Description
    System.String resourceID

    The full resourceID to get data from

    Returns
    Type Description
    System.IO.Stream

    Raw data from the given resource

    | Improve this Doc View Source

    GetSchema(Type)

    Gets the Xsd schema for a given type.

    Declaration
    protected virtual XmlSchema GetSchema(Type type)
    Parameters
    Type Name Description
    System.Type type

    The type to get the schema for

    Returns
    Type Description
    System.Xml.Schema.XmlSchema

    The schema for the given type

    | Improve this Doc View Source

    GetSchemaMapping(String, String)

    Gets the schema mappings for the given FDO provider. These mappings form the basis for a custom configuration document for a feature source that supports configuration

    Declaration
    public abstract ConfigurationDocument GetSchemaMapping(string provider, string partialConnString)
    Parameters
    Type Name Description
    System.String provider

    The FDO provider

    System.String partialConnString

    The connection string

    Returns
    Type Description
    ConfigurationDocument
    | Improve this Doc View Source

    GetSchemas(String)

    Gets the schemas.

    Declaration
    public abstract string[] GetSchemas(string resourceId)
    Parameters
    Type Name Description
    System.String resourceId

    The resource id.

    Returns
    Type Description
    System.String[]
    | Improve this Doc View Source

    GetSerializer(Type)

    Returns an XmlSerializer for the given type

    Declaration
    protected virtual XmlSerializer GetSerializer(Type type)
    Parameters
    Type Name Description
    System.Type type

    The object type to serialize

    Returns
    Type Description
    System.Xml.Serialization.XmlSerializer

    An XmlSerializer for the given type

    | Improve this Doc View Source

    GetSpatialContextInfo(String, Boolean)

    Returns the spatial info for a given featuresource

    Declaration
    public abstract FdoSpatialContextList GetSpatialContextInfo(string resourceID, bool activeOnly)
    Parameters
    Type Name Description
    System.String resourceID

    The ID of the resource to query

    System.Boolean activeOnly

    Query only active items

    Returns
    Type Description
    FdoSpatialContextList

    A list of spatial contexts

    | Improve this Doc View Source

    GetSpatialExtent(String, String, String)

    Gets the spatial extent.

    Declaration
    public virtual IEnvelope GetSpatialExtent(string resourceID, string schema, string geometry)
    Parameters
    Type Name Description
    System.String resourceID

    The resource ID.

    System.String schema

    The schema.

    System.String geometry

    The geometry.

    Returns
    Type Description
    IEnvelope
    | Improve this Doc View Source

    GetSpatialExtent(String, String, String, Boolean)

    Gets the spatial extent.

    Declaration
    public virtual IEnvelope GetSpatialExtent(string resourceID, string schema, string geometry, bool allowFallbackToContextInformation)
    Parameters
    Type Name Description
    System.String resourceID

    The resource ID.

    System.String schema

    The schema.

    System.String geometry

    The geometry.

    System.Boolean allowFallbackToContextInformation

    if set to true [allow fallback to context information].

    Returns
    Type Description
    IEnvelope
    | Improve this Doc View Source

    GetSpatialExtent(String, String, String, String)

    Gets the spatial extent.

    Declaration
    public virtual IEnvelope GetSpatialExtent(string resourceID, string schema, string geometry, string filter)
    Parameters
    Type Name Description
    System.String resourceID

    The resource ID.

    System.String schema

    The schema.

    System.String geometry

    The geometry.

    System.String filter

    The filter.

    Returns
    Type Description
    IEnvelope
    | Improve this Doc View Source

    GetSpatialExtent(String, String, String, String, Boolean)

    Gets the spatial extent.

    Declaration
    protected virtual IEnvelope GetSpatialExtent(string resourceID, string schema, string geometry, string filter, bool allowFallbackToContextInformation)
    Parameters
    Type Name Description
    System.String resourceID

    The resource ID.

    System.String schema

    The schema.

    System.String geometry

    The geometry.

    System.String filter

    The filter.

    System.Boolean allowFallbackToContextInformation

    if set to true [allow fallback to context information].

    Returns
    Type Description
    IEnvelope
    Exceptions
    Type Condition
    NullExtentException

    Thrown if the geometric extent is null

    | Improve this Doc View Source

    HasFolder(String)

    Returns a value indicating if a given folder exists

    Declaration
    public virtual bool HasFolder(string folderpath)
    Parameters
    Type Name Description
    System.String folderpath

    The path of the folder

    Returns
    Type Description
    System.Boolean

    True if the folder exists, false otherwise. Also returns false on error.

    | Improve this Doc View Source

    InferMPU(String, Double)

    Infers the meters per unit value from the specified coordinate system

    Declaration
    protected virtual double InferMPU(string csWkt, double units)
    Parameters
    Type Name Description
    System.String csWkt
    System.Double units
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    MoveFolder(String, String, Boolean)

    Moves a folder and its content from one location to another. This does not update any references.

    Declaration
    public abstract void MoveFolder(string oldpath, string newpath, bool overwrite)
    Parameters
    Type Name Description
    System.String oldpath

    The current folder path, the one moving from

    System.String newpath

    The new folder path, the one moving to

    System.Boolean overwrite

    True if the move can overwrite an existing folder, false otherwise

    | Improve this Doc View Source

    MoveFolderWithReferences(String, String, LengthyOperationCallBack, LengthyOperationProgressCallBack)

    Moves a folder, and subsequently updates all resources pointing to the old resource path

    Declaration
    public virtual bool MoveFolderWithReferences(string oldpath, string newpath, LengthyOperationCallBack callback, LengthyOperationProgressCallBack progress)
    Parameters
    Type Name Description
    System.String oldpath

    The current folder path, the one moving from

    System.String newpath

    The new folder path, the one moving to

    LengthyOperationCallBack callback

    A callback delegate, being called for non progress reporting events.

    LengthyOperationProgressCallBack progress

    A callback delegate, being called for progress reporting events.

    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    MoveResource(String, String, Boolean)

    Moves a resource from one location to another. This does not update any references.

    Declaration
    public abstract void MoveResource(string oldpath, string newpath, bool overwrite)
    Parameters
    Type Name Description
    System.String oldpath

    The current resource path, the one moving from

    System.String newpath

    The new resource path, the one moving to

    System.Boolean overwrite

    True if the move can overwrite an existing resource, false otherwise

    | Improve this Doc View Source

    MoveResourceWithReferences(String, String, LengthyOperationCallBack, LengthyOperationProgressCallBack)

    Moves a resource, and subsequently updates all resources pointing to the old resource path

    Declaration
    public virtual bool MoveResourceWithReferences(string oldpath, string newpath, LengthyOperationCallBack callback, LengthyOperationProgressCallBack progress)
    Parameters
    Type Name Description
    System.String oldpath

    The current resource path, the one moving from

    System.String newpath

    The new resource path, the one moving to

    LengthyOperationCallBack callback

    A callback delegate, being called for non progress reporting events.

    LengthyOperationProgressCallBack progress

    A callback delegate, being called for progress reporting events.

    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    OnRequestDispatched(String)

    Called when [request dispatched].

    Declaration
    protected void OnRequestDispatched(string data)
    Parameters
    Type Name Description
    System.String data

    The data.

    | Improve this Doc View Source

    OnResourceAdded(String)

    Raises the ResourceAdded event

    Declaration
    protected void OnResourceAdded(string resId)
    Parameters
    Type Name Description
    System.String resId
    | Improve this Doc View Source

    OnResourceDeleted(String)

    Raises the ResourceDeleted event

    Declaration
    protected void OnResourceDeleted(string resId)
    Parameters
    Type Name Description
    System.String resId
    | Improve this Doc View Source

    OnResourceUpdated(String)

    Raises the ResourceUpdated event

    Declaration
    protected void OnResourceUpdated(string resId)
    Parameters
    Type Name Description
    System.String resId
    | Improve this Doc View Source

    OpenMap(String)

    Opens the specified runtime map

    Declaration
    public virtual RuntimeMap OpenMap(string runtimeMapResourceId)
    Parameters
    Type Name Description
    System.String runtimeMapResourceId
    Returns
    Type Description
    RuntimeMap
    | Improve this Doc View Source

    PurgeCachedItemsOf(String)

    Removes all cached items associated with the given feature source

    Declaration
    protected int PurgeCachedItemsOf(string resourceId)
    Parameters
    Type Name Description
    System.String resourceId
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    QueryFeatureSource(String, String)

    Executes a feature query on the specified feature source

    Declaration
    public IFeatureReader QueryFeatureSource(string resourceID, string className)
    Parameters
    Type Name Description
    System.String resourceID

    The Feature Source ID

    System.String className

    The feature class name

    Returns
    Type Description
    IFeatureReader

    A IFeatureReader containing the results of the query

    | Improve this Doc View Source

    QueryFeatureSource(String, String, String)

    Executes a feature query on the specified feature source

    Declaration
    public IFeatureReader QueryFeatureSource(string resourceID, string className, string filter)
    Parameters
    Type Name Description
    System.String resourceID

    The Feature Source ID

    System.String className

    The feature class name

    System.String filter

    The FDO filter string that determines what features will be returned

    Returns
    Type Description
    IFeatureReader

    A IFeatureReader containing the results of the query

    | Improve this Doc View Source

    QueryFeatureSource(String, String, String, String[])

    Executes a feature query on the specified feature source

    Declaration
    public IFeatureReader QueryFeatureSource(string resourceID, string className, string filter, string[] propertyNames)
    Parameters
    Type Name Description
    System.String resourceID

    The Feature Source ID

    System.String className

    The feature class name

    System.String filter

    The FDO filter string that determines what features will be returned

    System.String[] propertyNames

    A list of properties that are to be returned in the query result

    Returns
    Type Description
    IFeatureReader

    A IFeatureReader containing the results of the query

    | Improve this Doc View Source

    QueryFeatureSource(String, String, String, String[], NameValueCollection)

    Executes a feature query on the specified feature source

    Declaration
    public abstract IFeatureReader QueryFeatureSource(string resourceID, string className, string filter, string[] propertyNames, NameValueCollection computedProperties)
    Parameters
    Type Name Description
    System.String resourceID

    The Feature Source ID

    System.String className

    The feature class name

    System.String filter

    The FDO filter string that determines what features will be returned

    System.String[] propertyNames

    A list of properties that are to be returned in the query result

    System.Collections.Specialized.NameValueCollection computedProperties

    A list of name/value pairs that contain the alias (name) for an FDO expression (value)

    Returns
    Type Description
    IFeatureReader

    A IFeatureReader containing the results of the query

    | Improve this Doc View Source

    QueryFeatureSource(String, String, String, String[], NameValueCollection, Int32)

    Executes a feature query on the specified feature source

    Declaration
    public virtual IFeatureReader QueryFeatureSource(string resourceID, string className, string filter, string[] propertyNames, NameValueCollection computedProperties, int limit)
    Parameters
    Type Name Description
    System.String resourceID

    The Feature Source ID

    System.String className

    The feature class name

    System.String filter

    The FDO filter string that determines what features will be returned

    System.String[] propertyNames

    A list of properties that are to be returned in the query result

    System.Collections.Specialized.NameValueCollection computedProperties

    A list of name/value pairs that contain the alias (name) for an FDO expression (value)

    System.Int32 limit

    Limits the number of features returned in the reader. -1 for all features

    Returns
    Type Description
    IFeatureReader

    A IFeatureReader containing the results of the query

    | Improve this Doc View Source

    RemoveVersionFromProviderName(String)

    Removes the version numbers from a providername

    Declaration
    public virtual string RemoveVersionFromProviderName(string providername)
    Parameters
    Type Name Description
    System.String providername

    The name of the provider, with or without version numbers

    Returns
    Type Description
    System.String

    The provider name without version numbers

    | Improve this Doc View Source

    ResetFeatureSourceSchemaCache()

    Resets the feature source schema cache.

    Declaration
    public virtual void ResetFeatureSourceSchemaCache()
    | Improve this Doc View Source

    ResourceExists(String)

    Returns a boolean indicating if a given resource exists

    Declaration
    public virtual bool ResourceExists(string resourceID)
    Parameters
    Type Name Description
    System.String resourceID

    The resource to look for

    Returns
    Type Description
    System.Boolean

    True if the resource exists false otherwise. Also returns false on error.

    | Improve this Doc View Source

    SaveResource(IResource)

    Saves the resource.

    Declaration
    public void SaveResource(IResource resource)
    Parameters
    Type Name Description
    IResource resource

    The resource.

    | Improve this Doc View Source

    SaveResourceAs(IResource, String)

    Saves the resource with the specified resource ID

    Declaration
    public void SaveResourceAs(IResource resource, string resourceid)
    Parameters
    Type Name Description
    IResource resource

    The resource.

    System.String resourceid

    The resourceid.

    | Improve this Doc View Source

    SerializeObject(Object)

    Serialize an object into a new memory stream.

    Declaration
    public virtual MemoryStream SerializeObject(object o)
    Parameters
    Type Name Description
    System.Object o

    The object to serialize

    Returns
    Type Description
    System.IO.MemoryStream

    A memorystream with the serialized object

    | Improve this Doc View Source

    SerializeObject(Object, Stream)

    Serializes an object into a stream

    Declaration
    public virtual void SerializeObject(object o, Stream stream)
    Parameters
    Type Name Description
    System.Object o

    The object to serialize

    System.IO.Stream stream

    The stream to serialize into

    | Improve this Doc View Source

    SetCustomProperty(String, Object)

    Sets the custom property.

    Declaration
    public abstract void SetCustomProperty(string name, object value)
    Parameters
    Type Name Description
    System.String name

    The name.

    System.Object value

    The value.

    | Improve this Doc View Source

    SetFolderHeader(String, ResourceFolderHeaderType)

    Sets the folder header.

    Declaration
    public virtual void SetFolderHeader(string resourceID, ResourceFolderHeaderType header)
    Parameters
    Type Name Description
    System.String resourceID

    The resource ID.

    ResourceFolderHeaderType header

    The header.

    | Improve this Doc View Source

    SetFolderOrResourceHeader(String, Object)

    Sets the folder or resource header.

    Declaration
    public virtual void SetFolderOrResourceHeader(string resourceID, object header)
    Parameters
    Type Name Description
    System.String resourceID

    The resource ID.

    System.Object header

    The header.

    | Improve this Doc View Source

    SetResourceData(String, String, ResourceDataType, Stream)

    Uploads data to a resource

    Declaration
    public virtual void SetResourceData(string resourceid, string dataname, ResourceDataType datatype, Stream stream)
    Parameters
    Type Name Description
    System.String resourceid

    The id of the resource to update

    System.String dataname

    The name of the data to update or create

    ResourceDataType datatype

    The type of data

    System.IO.Stream stream

    A stream containing the new content of the resource data

    | Improve this Doc View Source

    SetResourceData(String, String, ResourceDataType, Stream, Utility.StreamCopyProgressDelegate)

    Uploads data to a resource

    Declaration
    public abstract void SetResourceData(string resourceid, string dataname, ResourceDataType datatype, Stream stream, Utility.StreamCopyProgressDelegate callback)
    Parameters
    Type Name Description
    System.String resourceid

    The id of the resource to update

    System.String dataname

    The name of the data to update or create

    ResourceDataType datatype

    The type of data

    System.IO.Stream stream

    A stream containing the new content of the resource data

    Utility.StreamCopyProgressDelegate callback

    The callback.

    | Improve this Doc View Source

    SetResourceHeader(String, ResourceDocumentHeaderType)

    Sets the resource header.

    Declaration
    public virtual void SetResourceHeader(string resourceID, ResourceDocumentHeaderType header)
    Parameters
    Type Name Description
    System.String resourceID

    The resource ID.

    ResourceDocumentHeaderType header

    The header.

    | Improve this Doc View Source

    SetResourceXmlData(String, Stream)

    Writes raw data into a resource.

    Declaration
    public virtual void SetResourceXmlData(string resourceID, Stream stream)
    Parameters
    Type Name Description
    System.String resourceID

    The resourceID to write into

    System.IO.Stream stream

    The stream containing the data to write.

    | Improve this Doc View Source

    SetResourceXmlData(String, Stream, Stream)

    Sets the resource XML data.

    Declaration
    public abstract void SetResourceXmlData(string resourceId, Stream content, Stream header)
    Parameters
    Type Name Description
    System.String resourceId

    The resource id.

    System.IO.Stream content

    The content.

    System.IO.Stream header

    The header.

    | Improve this Doc View Source

    TestConnection(String)

    Tests the connection.

    Declaration
    public abstract string TestConnection(string featuresource)
    Parameters
    Type Name Description
    System.String featuresource

    The featuresource.

    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    Touch(String)

    Forces a timestamp update of the specified resource. This is akin to setting the resource's content using its existing content.

    Declaration
    public virtual void Touch(string resourceId)
    Parameters
    Type Name Description
    System.String resourceId
    | Improve this Doc View Source

    UpdateRepository(String, ResourceFolderHeaderType)

    Updates the repository.

    Declaration
    public abstract void UpdateRepository(string resourceId, ResourceFolderHeaderType header)
    Parameters
    Type Name Description
    System.String resourceId

    The resource id.

    ResourceFolderHeaderType header

    The header.

    | Improve this Doc View Source

    UpdateResourceReferences(Object, String, String, Boolean)

    Updates all resource references inside an object.

    Declaration
    public virtual void UpdateResourceReferences(object o, string oldresourcepath, string newresourcepath, bool folderupdates)
    Parameters
    Type Name Description
    System.Object o

    The object in which the resource references are to be updated

    System.String oldresourcepath

    The current resource path, the one updating from

    System.String newresourcepath

    The new resource path, the one updating to

    System.Boolean folderupdates

    True if the old and new resource path identifiers are folders, false otherwise

    | Improve this Doc View Source

    UpdateResourceReferences(Object, String, String, Boolean, Hashtable)

    Updates all resource references inside an object.

    Declaration
    protected void UpdateResourceReferences(object o, string oldresourcepath, string newresourcepath, bool folderupdates, Hashtable visited)
    Parameters
    Type Name Description
    System.Object o

    The object in which the resource references are to be updated

    System.String oldresourcepath

    The current resource path, the one updating from

    System.String newresourcepath

    The new resource path, the one updating to

    System.Boolean folderupdates

    True if the old and new resource path identifiers are folders, false otherwise

    System.Collections.Hashtable visited

    A hashtable with objects previously visited. Used for recursion, leave as null when calling from outside the API.

    | Improve this Doc View Source

    UploadPackage(String, Utility.StreamCopyProgressDelegate)

    Upload a MapGuide Package file to the server

    Declaration
    public abstract void UploadPackage(string filename, Utility.StreamCopyProgressDelegate callback)
    Parameters
    Type Name Description
    System.String filename

    Name of the file to upload

    Utility.StreamCopyProgressDelegate callback

    A callback argument used to display progress. May be null.

    | Improve this Doc View Source

    ValidateVersion(SiteVersion)

    Validates the current server version against the highest tested version.

    Declaration
    protected virtual void ValidateVersion(SiteVersion version)
    Parameters
    Type Name Description
    SiteVersion version

    The version to validate

    | Improve this Doc View Source

    ValidateVersion(Version)

    Validates the current server version against the highest tested version.

    Declaration
    protected virtual void ValidateVersion(Version version)
    Parameters
    Type Name Description
    System.Version version

    The version to validate

    | Improve this Doc View Source

    WriteResource(String, Object)

    Writes an object into a resourceID

    Declaration
    public virtual void WriteResource(string resourceID, object resource)
    Parameters
    Type Name Description
    System.String resourceID

    The resource to write into

    System.Object resource

    The resourcec to write

    Events

    | Improve this Doc View Source

    RequestDispatched

    Raised when a outbound request has been dispatched

    Declaration
    public event RequestEventHandler RequestDispatched
    Event Type
    Type Description
    RequestEventHandler
    | Improve this Doc View Source

    ResourceAdded

    Raised when a resource is added

    Declaration
    public event ResourceEventHandler ResourceAdded
    Event Type
    Type Description
    ResourceEventHandler
    | Improve this Doc View Source

    ResourceDeleted

    Raised when a resource is deleted. Note if a folder is deleted, this will only be raised for the folder and not its children. Also note that this is raised on any move operations as the original source is for all intents and purposes, deleted.

    Declaration
    public event ResourceEventHandler ResourceDeleted
    Event Type
    Type Description
    ResourceEventHandler
    | Improve this Doc View Source

    ResourceUpdated

    Raised when a resource is updated

    Declaration
    public event ResourceEventHandler ResourceUpdated
    Event Type
    Type Description
    ResourceEventHandler
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2009 - 2022 Jackie Ng