C# Класс Sage.ResourceManagement.Resource

Represents a file resource for use with Sage.
Наследование: IXmlConvertible
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 !=.

Описание методов

Equals() публичный Метод

Compares this resource to another resource.
public Equals ( Resource other ) : bool
other Resource The resource to compare this resource with.
Результат bool

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetResolvedPhysicalPath() публичный Метод

Gets the resolved physical path of this resource.
public GetResolvedPhysicalPath ( SageContext context ) : string
context SageContext The context under which this method is executed.
Результат string

GetResolvedWebPath() публичный Метод

Gets the resolved web-accessible path of this resource.
public GetResolvedWebPath ( SageContext context ) : string
context SageContext The context under which this method is executed.
Результат string

IsValidFor() публичный Метод

Determines whether this resource is valid for the specified user agent ID.
public IsValidFor ( string userAgentID ) : bool
userAgentID string The user agent ID.
Результат bool

Parse() публичный Метод

public Parse ( XmlElement element ) : void
element System.Xml.XmlElement
Результат void

Resource() публичный Метод

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.
Результат System

ToString() публичный Метод

public ToString ( ) : string
Результат string

ToXml() публичный Метод

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.
Результат System.Xml.XmlElement

ToXml() публичный Метод

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.
Результат System.Xml.XmlNode

operator() публичный статический Метод

Implements the operator !=.
public static operator ( ) : bool
Результат bool