Interface IResource
Represents a MapGuide Resource
Inherited Members
System.ICloneable.Clone()
System.ComponentModel.INotifyPropertyChanged.PropertyChanged
Namespace: OSGeo.MapGuide.ObjectModels
Assembly: OSGeo.MapGuide.ObjectModels.dll
Syntax
public interface IResource : IVersionedEntity, ICloneable, INotifyPropertyChanged
Properties
| Improve this Doc View SourceIsStronglyTyped
Indicates whether this resource is strongly typed. If false it means the implementer is a UntypedResource object. This usually means that the matching serializer could not be found because the resource version is unrecognised.
Declaration
[JsonIgnore]
bool IsStronglyTyped { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ResourceID
Gets or sets the resource ID.
Declaration
[JsonIgnore]
string ResourceID { get; set; }
Property Value
Type | Description |
---|---|
System.String | The resource ID. |
ResourceType
Gets the type of the resource.
Declaration
[JsonIgnore]
string ResourceType { get; }
Property Value
Type | Description |
---|---|
System.String | The type of the resource. |
ValidatingSchema
Gets the validating schema.
Declaration
[JsonIgnore]
string ValidatingSchema { get; }
Property Value
Type | Description |
---|---|
System.String | The validating schema. |
Methods
| Improve this Doc View SourceSerialize()
Serializes this instance to XML and returns the XML content. It is not recommended to call this method directly instead use OSGeo.MapGuide.ObjectModels.ResourceTypeRegistry.Serialize as that will invoke any pre-serialization hooks that may have been set up for this particular resource.
Declaration
string Serialize()
Returns
Type | Description |
---|---|
System.String |