Share via

Scripts Class

Represents a type that allows queuing and rendering script elements.

Inheritance Hierarchy


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


Public NotInheritable Class Scripts
public static class Scripts
public ref class Scripts abstract sealed
type Scripts =  class end
public final class Scripts

The Scripts type exposes the following members.


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



  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.


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


System.Web.Optimization Namespace