Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ProviderBase.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SoapMessage.cs
- DesignerRegionMouseEventArgs.cs
- ToolboxItemCollection.cs
- HtmlTableCell.cs
- XmlDataDocument.cs
- SafeLibraryHandle.cs
- TaskHelper.cs
- ReadOnlyDataSourceView.cs
- SHA512.cs
- TextEditorContextMenu.cs
- BufferedOutputStream.cs
- Simplifier.cs
- EntityContainer.cs
- VerificationAttribute.cs
- XmlCharacterData.cs
- AccessKeyManager.cs
- Msec.cs
- FillErrorEventArgs.cs
- MasterPage.cs
- DoubleConverter.cs
- RealizationContext.cs
- Collection.cs
- XmlNodeComparer.cs
- XmlWellformedWriterHelpers.cs
- MetadataImporter.cs
- PersonalizationDictionary.cs
- precedingsibling.cs
- XmlSecureResolver.cs
- InputLanguageProfileNotifySink.cs
- GcHandle.cs
- FixedTextView.cs
- UserPersonalizationStateInfo.cs
- UInt64.cs
- Input.cs
- WorkflowExecutor.cs
- UrlMappingsSection.cs
- MachinePropertyVariants.cs
- ErrorFormatterPage.cs
- XmlUrlResolver.cs
- FlatButtonAppearance.cs
- NameValuePermission.cs
- TextRenderingModeValidation.cs
- SecurityRequiresReviewAttribute.cs
- SynchronousReceiveElement.cs
- TaskDesigner.cs
- X500Name.cs
- PolygonHotSpot.cs
- ScrollPattern.cs
- DataServiceBehavior.cs
- DataGridViewRowPostPaintEventArgs.cs
- TextEffect.cs
- TagMapInfo.cs
- CacheAxisQuery.cs
- DataFormats.cs
- BevelBitmapEffect.cs
- HtmlElement.cs
- WindowsListViewGroupSubsetLink.cs
- TreeNode.cs
- PathTooLongException.cs
- PasswordDeriveBytes.cs
- PasswordDeriveBytes.cs
- HttpServerVarsCollection.cs
- ScrollPattern.cs
- ParserOptions.cs
- InstanceCreationEditor.cs
- MemoryMappedViewAccessor.cs
- HtmlTableRowCollection.cs
- ExtensionFile.cs
- ResourceAttributes.cs
- ExpandedProjectionNode.cs
- WorkflowInstance.cs
- SymmetricAlgorithm.cs
- DbConnectionPoolGroupProviderInfo.cs
- FileDialog.cs
- PtsContext.cs
- DbMetaDataFactory.cs
- HwndSourceParameters.cs
- PackUriHelper.cs
- SqlXmlStorage.cs
- Options.cs
- WindowsTreeView.cs
- StoragePropertyMapping.cs
- CustomServiceCredentials.cs
- GetPageNumberCompletedEventArgs.cs
- XmlNodeWriter.cs
- SchemaElementLookUpTableEnumerator.cs
- PrincipalPermission.cs
- AssemblyName.cs
- TimeSpanStorage.cs
- FormViewInsertedEventArgs.cs
- BinarySerializer.cs
- GlyphCache.cs
- HttpConfigurationSystem.cs
- KnownTypes.cs
- Confirm.cs
- ConnectionStringSettingsCollection.cs
- SqlAliaser.cs
- SHA384.cs
- XPathSelfQuery.cs
- SubMenuStyleCollectionEditor.cs