Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Configuration / System / Configuration / ProviderBase.cs / 1 / ProviderBase.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration.Provider { using System.Collections.Specialized; using System.Runtime.Serialization; public abstract class ProviderBase { private string _name; private string _Description; public virtual string Name { get { return _name; } } public virtual string Description { get { return string.IsNullOrEmpty(_Description) ? Name : _Description; } } public virtual void Initialize(string name, NameValueCollection config) { lock (this) { if (_Initialized) throw new InvalidOperationException(SR.GetString(SR.Provider_Already_Initialized)); _Initialized = true; } if (name == null) throw new ArgumentNullException("name"); if (name.Length == 0) throw new ArgumentException(SR.GetString(SR.Config_provider_name_null_or_empty), "name"); _name = name; if (config != null) { _Description = config["description"]; config.Remove("description"); } } private bool _Initialized; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration.Provider { using System.Collections.Specialized; using System.Runtime.Serialization; public abstract class ProviderBase { private string _name; private string _Description; public virtual string Name { get { return _name; } } public virtual string Description { get { return string.IsNullOrEmpty(_Description) ? Name : _Description; } } public virtual void Initialize(string name, NameValueCollection config) { lock (this) { if (_Initialized) throw new InvalidOperationException(SR.GetString(SR.Provider_Already_Initialized)); _Initialized = true; } if (name == null) throw new ArgumentNullException("name"); if (name.Length == 0) throw new ArgumentException(SR.GetString(SR.Config_provider_name_null_or_empty), "name"); _name = name; if (config != null) { _Description = config["description"]; config.Remove("description"); } } private bool _Initialized; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ColumnMap.cs
- OdbcConnectionFactory.cs
- ThaiBuddhistCalendar.cs
- SurrogateEncoder.cs
- ExpressionParser.cs
- UnaryNode.cs
- MatrixUtil.cs
- AlphaSortedEnumConverter.cs
- ConnectionStringsSection.cs
- RegexMatchCollection.cs
- TableHeaderCell.cs
- Triplet.cs
- XmlAggregates.cs
- FieldDescriptor.cs
- GridViewDeleteEventArgs.cs
- WpfXamlLoader.cs
- RepeaterDataBoundAdapter.cs
- TreeViewEvent.cs
- MetadataProperty.cs
- MSAANativeProvider.cs
- MarginsConverter.cs
- FormClosedEvent.cs
- SendOperation.cs
- SerializationInfoEnumerator.cs
- ScrollProperties.cs
- IntSecurity.cs
- ResourceSet.cs
- UpdateProgress.cs
- SessionState.cs
- LiteralText.cs
- HealthMonitoringSectionHelper.cs
- DSGeneratorProblem.cs
- Lease.cs
- SoapFault.cs
- TrackingQueryElement.cs
- RequestCachePolicy.cs
- SafeRightsManagementQueryHandle.cs
- DriveNotFoundException.cs
- ISFClipboardData.cs
- RectangleHotSpot.cs
- ConfigXmlComment.cs
- AspNetSynchronizationContext.cs
- MouseGestureValueSerializer.cs
- RadioButtonFlatAdapter.cs
- FontStyleConverter.cs
- XamlTypeWithExplicitNamespace.cs
- CodeMethodReturnStatement.cs
- EntityContainerEmitter.cs
- UTF7Encoding.cs
- TypedTableBaseExtensions.cs
- ScrollItemPatternIdentifiers.cs
- ControlCollection.cs
- SqlNodeTypeOperators.cs
- OracleParameterBinding.cs
- ButtonColumn.cs
- ChangePassword.cs
- SymLanguageType.cs
- ArrangedElement.cs
- BCLDebug.cs
- SiteMapHierarchicalDataSourceView.cs
- WorkItem.cs
- QuaternionRotation3D.cs
- SingleAnimation.cs
- SettingsPropertyValue.cs
- TableLayoutStyleCollection.cs
- InfoCardCryptoHelper.cs
- mansign.cs
- ComponentCommands.cs
- MimeWriter.cs
- SRef.cs
- EraserBehavior.cs
- RowToParametersTransformer.cs
- OlePropertyStructs.cs
- GZipStream.cs
- InputLanguage.cs
- OleDbConnectionFactory.cs
- DataGridViewSortCompareEventArgs.cs
- WizardStepCollectionEditor.cs
- ModelTreeManager.cs
- translator.cs
- RtfFormatStack.cs
- CacheMode.cs
- MarkupCompiler.cs
- ColorConvertedBitmap.cs
- StreamGeometry.cs
- PermissionSetEnumerator.cs
- DataError.cs
- InputBindingCollection.cs
- CodeConstructor.cs
- Missing.cs
- HttpConfigurationSystem.cs
- altserialization.cs
- ClaimTypes.cs
- CapabilitiesUse.cs
- ThrowHelper.cs
- PathSegmentCollection.cs
- Matrix3D.cs
- CompareInfo.cs
- DataGridPageChangedEventArgs.cs
- Menu.cs