Show / Hide Table of Contents

Class BundleConfigurationCollection

Inheritance
System.Object
BundleConfigurationCollection
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Volo.Abp.AspNetCore.Mvc.UI.Bundling
Assembly: Volo.Abp.AspNetCore.Mvc.UI.Bundling.dll
Syntax
public class BundleConfigurationCollection

Constructors

BundleConfigurationCollection()

Declaration
public BundleConfigurationCollection()

Methods

Add(String, Action<BundleConfiguration>)

Adds a new bundle with given bundleName. Throws if there is already a bundle with the same name.

Declaration
public BundleConfigurationCollection Add(string bundleName, Action<BundleConfiguration> configureAction = null)
Parameters
Type Name Description
System.String bundleName

Bundle name.

System.Action<BundleConfiguration> configureAction

Initial configuration action.

Returns
Type Description
BundleConfigurationCollection

Returns this object for chained calls.

Configure(String, Action<BundleConfiguration>)

Configures an existing bundle. This method also works for lazy bundles (those are created using razor tag helpers).

Declaration
public BundleConfigurationCollection Configure(string bundleName, Action<BundleConfiguration> configureAction)
Parameters
Type Name Description
System.String bundleName

Bundle name

System.Action<BundleConfiguration> configureAction

Configure action

Returns
Type Description
BundleConfigurationCollection

Returns this object for chained calls.

Get(String)

Gets a bundle.

Declaration
public BundleConfiguration Get(string bundleName)
Parameters
Type Name Description
System.String bundleName

The bundle name

Returns
Type Description
BundleConfiguration

The bundle configuration

TryAdd(String, Action<BundleConfiguration>, Boolean)

Tries to add a new bundle with given bundleName. Returns false if it's already created before. configureAction is not called if it's already added before.

Declaration
public bool TryAdd(string bundleName, Action<BundleConfiguration> configureAction = null, bool overrideIfExists = false)
Parameters
Type Name Description
System.String bundleName

Bundle name.

System.Action<BundleConfiguration> configureAction

Initial configuration action.

System.Boolean overrideIfExists

Overrides the bundle even if it does exists. This option is designed to be used only for development time where bundle configuration action may change.

Returns
Type Description
System.Boolean

Returns true if added. Returns false if it's already added before.

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft