Class ActivityTypeInfoProvider
- Namespace
- CMS.Activities
- Assembly
- CMS.Activities.dll
Class providing ActivityTypeInfo management.
[ProviderInterface(typeof(IActivityTypeInfoProvider))]
[Obsolete("Use CMS.DataEngine.IInfoProvider<ActivityTypeInfo> instead. Use CMS.DataEngine.InfoProviderExtensions for additional methods for individual objects retrieval. To get an instance of the interface's implementation use dependency injection or access the instance directly via the CMS.DataEngine.Provider<ActivityTypeInfo>.Instance property. When faking metadata in CMS.Tests.UnitTests using Fake() use the obsolete provider class until fully removed.")]
[ObsoleteSince(29, 5)]
public class ActivityTypeInfoProvider : AbstractInfoProvider<ActivityTypeInfo, ActivityTypeInfoProvider>, IInfoProvider, ICustomizableProvider, IBulkOperationProvider, IWebFarmProvider, IInfoValidator<ActivityTypeInfo>, IInfoByGuidProvider<ActivityTypeInfo>, IBulkInfoProvider<ActivityTypeInfo>, IActivityTypeInfoProvider, IInfoProvider<ActivityTypeInfo>, IInfoByIdProvider<ActivityTypeInfo>, IInfoByNameProvider<ActivityTypeInfo>
- Inheritance
-
objectActivityTypeInfoProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
ActivityTypeInfoProvider()
Constructor using ID and codename Hashtables.
public ActivityTypeInfoProvider()
Methods
GetActivityTypeDisplayName(string)
Returns display name of particular activity.
[Obsolete("Use IInfoProvider<ActivityTypeInfo>.Get(typeName).ActivityTypeDisplayName instead.")]
[ObsoleteSince(29, 5)]
public static string GetActivityTypeDisplayName(string typeName)
Parameters
typeName
stringCode name of activity type
Returns
- string
GetActivityTypeEnabled(string)
Checks if specified activity type is enabled.
[Obsolete("Use IInfoProvider<ActivityTypeInfo>.Get(typeName).ActivityTypeEnabled instead.")]
[ObsoleteSince(29, 5)]
public static bool GetActivityTypeEnabled(string typeName)
Parameters
typeName
stringCode name of activity type
Returns
- bool