Condividi tramite


Scripts Class

Represents a type that allows queuing and rendering script elements.

Inheritance Hierarchy

System.Object
  System.Web.Optimization.Scripts

Namespace:  System.Web.Optimization
Assembly:  System.Web.Optimization (in System.Web.Optimization.dll)

Syntax

'Declaration
Public NotInheritable Class Scripts
'Usage
public static class Scripts
public ref class Scripts abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type Scripts =  class end
public final class Scripts

The Scripts type exposes the following members.

Properties

  Name Description
Public propertyStatic member DefaultTagFormat Gets or sets the default format string for defining how script tags are rendered.

Top

Methods

  Name Description
Public methodStatic member Render Renders script tags for the following paths.
Public methodStatic member RenderFormat Renders script tags for a set of paths based on a format string.
Public methodStatic member Url Returns a fingerprinted URL if the virtualPath is to a bundle, otherwise returns the resolve URL.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Optimization Namespace