Navigation :
Introduction
FAQ
Setup, deployment & projects
Getting started
Examples
Catel.Core
Catel.MVVM
Catel.Fody
Catel.ReSharper
Tips & tricks
API reference
-
Catel.Cores
--
Catel
---
Catel.Android
---
Catel.ApiCop
---
Catel.Caching
---
Catel.Collections
---
Catel.ComponentModel
---
Catel.Configuration
---- ConfigurationChangedEventArgs
---- ConfigurationContainer
---- ConfigurationExtensions
---- ConfigurationService
---- DynamicConfiguration
---- DynamicConfigurationExtensions
---- DynamicConfigurationSerializerModifier
---- IConfigurationService
---- IConfigurationServiceExtensions
---
Catel.Core
---
Catel.Data
---
Catel.ExceptionHandling
---
Catel.IO
---
Catel.IoC
---
Catel.Linq
---
Catel.Logging
---
Catel.Messaging
---
Catel.Pooling
---
Catel.Reflection
---
Catel.Runtime
---
Catel.Scoping
---
Catel.Services
---
Catel.Test
---
Catel.Text
---
Catel.Threading
--- Argument
--- AsyncEventHandler
--- AsyncEventHandlerExtensions
--- ByteArrayExtensions
--- CatelEnvironment
--- CompositeFilter
--- CompositePredicate
--- CoreModule
--- DesignTimeCodeAttribute
--- DesignTimeHelper
--- DesignTimeInitializer
--- Disposable
--- DisposableToken
--- Enum
--- EnvironmentHelper
--- EventHandlerExtensions
--- ExceptionExtensions
--- ExceptionFactory
--- ExpressionHelper
--- FastDateTime
--- HashHelper
--- IBindableEnum
--- ICommandManagerExtensions
--- ICompositeFilter
--- IDisposableToken
--- IExecute
--- IExecuteWithObject
--- IFluent
--- INotifyPropertyChangedExtensions
--- IUniqueIdentifyable
--- IWeakAction
--- IWeakEventListener
--- IWeakFunc
--- IWeakReference
--- JsonExtensions
--- KnownPlatforms
--- LanguageHelper
--- MVVMModule
--- MustBeImplementedException
--- NotSupportedInPlatformException
--- ObjectHelper
--- ObjectToStringHelper
--- OpenInstanceActionHandler
--- OpenInstanceEventHandler
--- ParallelHelper
--- Platforms
--- ProcessExtensions
--- ProgressContext
--- ResourceHelper
--- SerializationJsonModule
--- StringExtensions
--- StringToObjectHelper
--- SupportedPlatforms
--- TagHelper
--- ThemeHelper
--- ThreadHelper
--- UniqueIdentifierHelper
--- UriExtensions
--- WeakAction
--- WeakActionBase
--- WeakEventListener
--- WeakFunc
--
Systems
-
Catel.MVVMs
-
Catel.Serialization.Jsons
ConfigurationExtensions
Name
Value
Assembly
Catel.Core
Namespace
Catel.Configuration
Available on
.NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public static class ConfigurationExtensions
The configuration extension methods.
Methods
GetSection<TSection>(Configuration this, string sectionName, string sectionGroupName)
Gets the section.
Type Parameters
TSection
The type of the section
Parameters
Name
Description
this
The instance
sectionName
The section name
sectionGroupName
The section group name
Returns
The section
Exceptions
Name
Description
System.ArgumentNullException
The this isnull
.
System.ArgumentException
The sectionName isnull
or empty.
IsConfigurationKey(ConfigurationChangedEventArgs eventArgs, string expectedKey)
Determines whether the specified ConfigurationChangedEventArgs represents the expected key. A key is also expected if the key isnull
or whitespace because it represents a full scope update in the IConfigurationService .
Parameters
Returns
true
if the event args represent the expected key; otherwise,false
.
Exceptions
Name
Description
ArgumentNullException
The eventArgs isnull
.
IsConfigurationKey(string key, string expectedKey)
Determines whether the specified configuration key represents the expected key. A key is also expected if the key isnull
or whitespace because it represents a full scope update in the IConfigurationService .
Parameters
Name
Description
key
The key.
expectedKey
The expected key.
Returns
true
if [is configuration key] [the specified expected key]; otherwise,false
.
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion
Please enable JavaScript to view the comments powered by Disqus.