ScriptResourceDefinition 类

定义

定义脚本资源的位置。Defines the location of a script resource.

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

注解

一个 ScriptResourceDefinition 对象表示单个逻辑脚本资源。A ScriptResourceDefinition object represents a single logical script resource. 此资源可能有多种不同的物理表示形式,例如调试版本、发布版本和内容分发网络(CDN)上的版本。This resource might have several different physical representations, such as a debug version, a release version, and a version on a content delivery network (CDN).

构造函数

ScriptResourceDefinition()

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

属性

CdnDebugPath

获取或设置内容分发网络 (CDN) 上的脚本资源的调试模式路径。Gets or sets the debug mode path of the script resource on a content delivery network (CDN).

CdnPath

获取或设置内容分发网络 (CDN) 上的脚本资源的释放模式路径。Gets or sets the release mode path of a script resource on a content delivery network (CDN).

CdnSupportsSecureConnection

获取或设置一个值,该值向 ScriptManager 指示在使用 HTTPS 访问页时是否应使用到内容分发网络 (CDN) 路径的安全连接来访问脚本资源。Gets or set a value that indicates to the ScriptManager whether a script resource should be accessed using a secure connection to the content delivery network (CDN) path when the page is accessed using HTTPS.

DebugPath

获取或设置在启用了调试模式时使用的脚本资源的调试模式路径。Gets or sets the debug mode path of the script resource that is used when debug mode is enabled.

LoadSuccessExpression

获取或设置用于检测 JavaScript 文件是否成功加载的 JavaScript 表达式。Gets or sets a JavaScript expression that is used to detect whether a JavaScript file loaded successfully.

Path

获取或设置脚本资源的释放模式路径。Gets or set the release mode path of the script resource.

ResourceAssembly

获取或设置包含脚本资源的程序集对象。Gets or sets an assembly object that contains the script resource.

ResourceName

获取或设置指定资源程序集中脚本资源的名称。Gets or sets the name of the script resource in the specified resource assembly.

方法

Equals(Object)

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

(继承自 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)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

IScriptResourceDefinition.CdnDebugPathSecureConnection
IScriptResourceDefinition.CdnPathSecureConnection

适用于