Telerik.Web.Mvc.WebAsset.WebAsset C# (CSharp) Method

WebAsset() public method

Initializes a new instance of the WebAsset class.
public WebAsset ( string contentType, string version, bool compress, float cacheDurationInDays, string content ) : Infrastructure
contentType string Type of the content.
version string The version.
compress bool if set to true [compress].
cacheDurationInDays float The cache duration in days.
content string The content.
return Infrastructure
        public WebAsset(string contentType, string version, bool compress, float cacheDurationInDays, string content)
        {
            Guard.IsNotNullOrEmpty(contentType, "contentType");
            Guard.IsNotNullOrEmpty(version, "version");
            Guard.IsNotNegative(cacheDurationInDays, "cacheDurationInDays");
            Guard.IsNotNullOrEmpty(content, "content");

            ContentType = contentType;
            Version = version;
            Compress = compress;
            CacheDurationInDays = cacheDurationInDays;
            Content = content;
        }
WebAsset