Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Scripts Class

Scripts Class

Represents a type that allows queuing and rendering script elements.


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

public static class Scripts

The Scripts type exposes the following members.

Public propertyStatic memberDefaultTagFormatGets or sets the default format string for defining how script tags are rendered.

Public methodStatic memberRenderRenders script tags for the following paths.
Public methodStatic memberRenderFormatRenders script tags for a set of paths based on a format string.
Public methodStatic memberUrlReturns a fingerprinted URL if the virtualPath is to a bundle, otherwise returns the resolve URL.

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