ScriptResourceMapping 类

定义

提供对脚本资源的位置映射支持。Provides location mapping support for script resources.

public ref class ScriptResourceMapping
public class ScriptResourceMapping
type ScriptResourceMapping = class
Public Class ScriptResourceMapping
继承
ScriptResourceMapping

注解

ScriptResourceMapping对象可以包含到脚本资源 (如脚本文件 (.js)) 的映射集合。A ScriptResourceMapping object can contain a collection of mappings to script resources, such as a script file (.js). 集合中的每一项均使用ScriptResourceDefinition名称或名称/程序集对映射到对象。Each item in the collection maps to a ScriptResourceDefinition object by using either a name or name/assembly pair.

构造函数

ScriptResourceMapping()

初始化 ScriptResourceMapping 类的新实例。Initializes a new instance of the ScriptResourceMapping class.

方法

AddDefinition(String, Assembly, ScriptResourceDefinition)

ScriptResourceMapping 对象添加一个 ScriptResourceDefinition 对象。Adds a ScriptResourceDefinition object to the ScriptResourceMapping object.

AddDefinition(String, ScriptResourceDefinition)

ScriptResourceMapping 对象添加一个 ScriptResourceDefinition 对象。Adds a ScriptResourceDefinition object to the ScriptResourceMapping object.

Clear()

ScriptResourceDefinition 对象中移除所有 ScriptResourceMapping 对象。Removes all ScriptResourceDefinition objects from the ScriptResourceMapping object.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetDefinition(ScriptReference)

ScriptResourceDefinition 对象返回 ScriptResourceMapping 对象。Returns a ScriptResourceDefinition object from the ScriptResourceMapping object.

GetDefinition(String)

根据 name 参数的 ScriptResourceDefinition 对象中返回指定的 ScriptResourceMapping 对象。Returns the specified ScriptResourceDefinition object from the ScriptResourceMapping object based on the name parameter.

GetDefinition(String, Assembly)

ScriptResourceDefinition 对象中返回指定的 ScriptResourceMapping 对象。Returns the specified ScriptResourceDefinition object from the ScriptResourceMapping object.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
RemoveDefinition(String)

基于 name 参数,从 ScriptResourceDefinition 中移除 ScriptResourceMapping 对象。Removes a ScriptResourceDefinition object from the ScriptResourceMapping object based on the name parameter.

RemoveDefinition(String, Assembly)

ScriptResourceDefinition 对象中移除 ScriptResourceMapping 对象。Removes a ScriptResourceDefinition object from the ScriptResourceMapping object.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

IScriptResourceMapping.GetDefinition(String)
IScriptResourceMapping.GetDefinition(String, Assembly)

适用于