Bundle.CdnPath Property

Gets or sets an alternate URL for the bundle when it is stored in a content delivery network.

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

public string CdnPath { get; set; }

Property Value

Type: System.String
An alternate URL for the bundle when it is stored in a content delivery network.

In order to configure the Web optimization framework to emit links to the a bundle’s CDN URL, the CdnPath value must not be null and UseCdn must equal true.

Show: