C# Class Sage.ResourceManagement.Resource

Represents a file resource for use with Sage.
Inheritance: IXmlConvertible
Afficher le fichier Open project: igorfrance/sage Class Usage Examples

Méthodes publiques

Méthode Description
Equals ( Resource other ) : bool

Compares this resource to another resource.

Equals ( object obj ) : bool
GetHashCode ( ) : int
GetResolvedPhysicalPath ( SageContext context ) : string

Gets the resolved physical path of this resource.

GetResolvedWebPath ( SageContext context ) : string

Gets the resolved web-accessible path of this resource.

IsValidFor ( string userAgentID ) : bool

Determines whether this resource is valid for the specified user agent ID.

Parse ( XmlElement element ) : void
Resource ( XmlElement configElement, string projectId ) : System

Initializes a new instance of the Resource class, using the specified configElement.

ToString ( ) : string
ToXml ( XmlDocument document ) : XmlElement

Generates an XmlElement that represents the configuration of this instance.

ToXml ( XmlDocument ownerDocument, SageContext context ) : XmlNode

Generates an XmlElement that represent a this resource.

operator ( ) : bool

Implements the operator !=.

Method Details

Equals() public méthode

Compares this resource to another resource.
public Equals ( Resource other ) : bool
other Resource The resource to compare this resource with.
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetResolvedPhysicalPath() public méthode

Gets the resolved physical path of this resource.
public GetResolvedPhysicalPath ( SageContext context ) : string
context SageContext The context under which this method is executed.
Résultat string

GetResolvedWebPath() public méthode

Gets the resolved web-accessible path of this resource.
public GetResolvedWebPath ( SageContext context ) : string
context SageContext The context under which this method is executed.
Résultat string

IsValidFor() public méthode

Determines whether this resource is valid for the specified user agent ID.
public IsValidFor ( string userAgentID ) : bool
userAgentID string The user agent ID.
Résultat bool

Parse() public méthode

public Parse ( XmlElement element ) : void
element System.Xml.XmlElement
Résultat void

Resource() public méthode

Initializes a new instance of the Resource class, using the specified configElement.
public Resource ( XmlElement configElement, string projectId ) : System
configElement System.Xml.XmlElement The configuration element that defines this resource.
projectId string The identification string of the project this library belongs to.
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

ToXml() public méthode

Generates an XmlElement that represents the configuration of this instance.
public ToXml ( XmlDocument document ) : XmlElement
document System.Xml.XmlDocument The document to use to create the element with.
Résultat System.Xml.XmlElement

ToXml() public méthode

Generates an XmlElement that represent a this resource.
public ToXml ( XmlDocument ownerDocument, SageContext context ) : XmlNode
ownerDocument System.Xml.XmlDocument The owner document to use to create the element.
context SageContext The context under which this method is executed, used to resolve the paths and load resources with.
Résultat System.Xml.XmlNode

operator() public static méthode

Implements the operator !=.
public static operator ( ) : bool
Résultat bool