C# 클래스 Sage.ResourceManagement.Resource

Represents a file resource for use with Sage.
상속: IXmlConvertible
파일 보기 프로젝트 열기: igorfrance/sage 1 사용 예제들

공개 메소드들

메소드 설명
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