CompositeScriptReference Classe
Definição
Representa uma coleção de referências de script a serem combinadas em um único script de composição.Represents a collection of script references to combine into a single composite script.
public ref class CompositeScriptReference : System::Web::UI::ScriptReferenceBase
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.EmptyStringExpandableObjectConverter))]
public class CompositeScriptReference : System.Web.UI.ScriptReferenceBase
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.EmptyStringExpandableObjectConverter))>]
type CompositeScriptReference = class
inherit ScriptReferenceBase
Public Class CompositeScriptReference
Inherits ScriptReferenceBase
- Herança
- Atributos
Comentários
O número de referências de script que uma CompositeScriptReference instância pode conter é limitado pelo tamanho da URL resultante.The number of script references that a CompositeScriptReference instance can contain is limited by the size of the resulting URL. A URL não pode ter mais de 1024 caracteres.The URL cannot be longer than 1024 characters.
Se você precisar contornar essa limitação, terá duas opções.If you have to work around this limitation, you have two options. A primeira opção é reduzir o número de ScriptReference objetos que o script composto contém.The first option is to reduce the number of ScriptReference objects that the composite script contains. A segunda opção é combinar manualmente os scripts em um único arquivo estático.The second option is to manually combine the scripts into a single static file. Nesse caso, você pode definir a Path propriedade para o local do arquivo estático.In that case, you can set the Path property to the location of the static file.
Construtores
| CompositeScriptReference() |
Inicializa uma nova instância da classe CompositeScriptReference.Initializes a new instance of the CompositeScriptReference class. |
Propriedades
| NotifyScriptLoaded |
Obsoleto.
Obtém ou define um valor que indica se o objeto ScriptResourceHandler adiciona automaticamente o código no final do arquivo ECMAScript (JavaScript) para chamar o método NotifyScriptLoaded cliente da classe Sys.Application.Gets or sets a value that indicates whether the ScriptResourceHandler object automatically adds code at the end of the ECMAScript (JavaScript) file to call the client NotifyScriptLoaded method of the Sys.Application class. (Herdado de ScriptReferenceBase) |
| Path |
Obtém ou define o caminho do arquivo de script de cliente referenciado, relativo à página da Web.Gets or sets the path of the referenced client script file, relative to the Web page. (Herdado de ScriptReferenceBase) |
| ResourceUICultures |
Obtém ou define a lista delimitada por vírgulas das culturas de interface do usuário com suporte pela propriedade Path.Gets or sets a comma-delimited list of UI cultures that are supported by the Path property. (Herdado de ScriptReferenceBase) |
| ScriptMode |
Obtém ou define a versão do arquivo de script de cliente (versão ou depuração) a ser usado.Gets or sets the version of the client script file (release or debug) to use. (Herdado de ScriptReferenceBase) |
| Scripts |
Obtém uma coleção de referências de script contidas no objeto de script de composição.Gets a collection of script references that are contained in the composite script object. |
Métodos
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| GetUrl(ScriptManager, Boolean) |
Retorna a URL que é renderizada como o valor do atributo |
| IsAjaxFrameworkScript(ScriptManager) |
Determina se o script de composição é uma referência a um script de estrutura AJAX ASP.NET.Determines whether the composite script is a reference to an ASP.NET AJAX framework script. |
| IsAjaxFrameworkScript(ScriptManager) |
Determina se a referência de script especificada é um script AJAX do ASP.NET.Determines whether the specified script reference is an ASP.NET AJAX script. (Herdado de ScriptReferenceBase) |
| IsFromSystemWebExtensions() |
Obsoleto.
Indica se o script de composição contém uma referência a um script de estrutura AJAX ASP.NET.Indicates whether the composite script contains a reference to an ASP.NET AJAX framework script. |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |