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
- FlowPosition.cs
- KerberosTokenFactoryCredential.cs
- UpdatePanelTrigger.cs
- FieldTemplateFactory.cs
- IndexedGlyphRun.cs
- Vars.cs
- List.cs
- DocumentXmlWriter.cs
- Screen.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- DatagridviewDisplayedBandsData.cs
- MenuEventArgs.cs
- TextContainer.cs
- TransactionOptions.cs
- ToolStripDropDownClosingEventArgs.cs
- RtfToXamlLexer.cs
- TogglePattern.cs
- ContainerParaClient.cs
- DependencyPropertyConverter.cs
- SymbolEqualComparer.cs
- DesignerImageAdapter.cs
- EntityContainerEmitter.cs
- SqlStatistics.cs
- XamlToRtfParser.cs
- CodeCastExpression.cs
- SecurityTokenResolver.cs
- HttpDictionary.cs
- MoveSizeWinEventHandler.cs
- AbstractExpressions.cs
- MultiBindingExpression.cs
- NullableLongAverageAggregationOperator.cs
- JsonDeserializer.cs
- EndpointDesigner.cs
- LayoutSettings.cs
- SqlBulkCopyColumnMapping.cs
- XmlILTrace.cs
- TextElementCollection.cs
- FilterableAttribute.cs
- srgsitem.cs
- TraceContextRecord.cs
- TransactionChannelListener.cs
- SourceFileInfo.cs
- BypassElement.cs
- Base64Encoding.cs
- PlanCompiler.cs
- PointLightBase.cs
- DbConnectionPoolCounters.cs
- AdornerPresentationContext.cs
- HMACSHA512.cs
- EndpointAddressAugust2004.cs
- DockProviderWrapper.cs
- Timeline.cs
- BamlMapTable.cs
- QilReplaceVisitor.cs
- EmbeddedObject.cs
- DesignerDataTable.cs
- DataGridViewMethods.cs
- ListBindableAttribute.cs
- FixedSOMLineRanges.cs
- XmlHierarchicalDataSourceView.cs
- RevocationPoint.cs
- GenerateTemporaryTargetAssembly.cs
- DesignTimeParseData.cs
- BaseDataList.cs
- ProtectedProviderSettings.cs
- ConnectionPoolManager.cs
- ComponentCache.cs
- COM2PropertyBuilderUITypeEditor.cs
- Overlapped.cs
- WebControlAdapter.cs
- AsyncSerializedWorker.cs
- EditableTreeList.cs
- DataGridViewCellConverter.cs
- PropertyMappingExceptionEventArgs.cs
- VariableQuery.cs
- ContextCorrelationInitializer.cs
- FixedStringLookup.cs
- ListItemParagraph.cs
- XamlClipboardData.cs
- OdbcError.cs
- ReverseQueryOperator.cs
- AppLevelCompilationSectionCache.cs
- InputLanguageManager.cs
- EncoderFallback.cs
- PersonalizablePropertyEntry.cs
- ImageSource.cs
- IntranetCredentialPolicy.cs
- TrackingLocation.cs
- ToolStripButton.cs
- CacheOutputQuery.cs
- RegisteredExpandoAttribute.cs
- HtmlTableRow.cs
- ConfigurationPermission.cs
- XmlValidatingReader.cs
- RequestResizeEvent.cs
- TextServicesProperty.cs
- SignatureHelper.cs
- ObjectListSelectEventArgs.cs
- CommandHelper.cs
- ObsoleteAttribute.cs