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
- ObjectHelper.cs
- XamlToRtfParser.cs
- GZipUtils.cs
- Axis.cs
- SchemaComplexType.cs
- SeverityFilter.cs
- SerializationAttributes.cs
- TypeListConverter.cs
- DataViewListener.cs
- SerialReceived.cs
- Literal.cs
- ActivityMarkupSerializationProvider.cs
- XamlFigureLengthSerializer.cs
- ConfigurationException.cs
- XappLauncher.cs
- DataDocumentXPathNavigator.cs
- SqlUDTStorage.cs
- WinInet.cs
- DashStyle.cs
- SqlCacheDependencyDatabase.cs
- WmlLinkAdapter.cs
- LoadedEvent.cs
- GeometryDrawing.cs
- FormViewModeEventArgs.cs
- DataGridView.cs
- RadioButtonStandardAdapter.cs
- DefaultShape.cs
- ThemeConfigurationDialog.cs
- sqlstateclientmanager.cs
- OdbcCommandBuilder.cs
- Image.cs
- CreateUserErrorEventArgs.cs
- ImageAnimator.cs
- Transform3DCollection.cs
- ConfigUtil.cs
- SqlCommandSet.cs
- Matrix3D.cs
- WindowsPen.cs
- ProfilePropertySettingsCollection.cs
- ListViewDeletedEventArgs.cs
- ImageFormat.cs
- BaseUriHelper.cs
- SqlRetyper.cs
- GZipDecoder.cs
- SweepDirectionValidation.cs
- TraceContextRecord.cs
- DateTimeParse.cs
- RangeValuePatternIdentifiers.cs
- Enumerable.cs
- EventRoute.cs
- LinkArea.cs
- Validator.cs
- InplaceBitmapMetadataWriter.cs
- IisTraceWebEventProvider.cs
- DebugView.cs
- TextPattern.cs
- DashStyle.cs
- WindowsGraphicsWrapper.cs
- InvalidDataException.cs
- Attribute.cs
- DelegatedStream.cs
- ApplicationServiceHelper.cs
- RayMeshGeometry3DHitTestResult.cs
- FixedNode.cs
- QilFunction.cs
- DocumentationServerProtocol.cs
- OTFRasterizer.cs
- CollectionBase.cs
- EmptyQuery.cs
- thaishape.cs
- FixedSOMPageConstructor.cs
- NetworkInformationException.cs
- FontNamesConverter.cs
- HttpRuntimeSection.cs
- FocusWithinProperty.cs
- XhtmlBasicValidatorAdapter.cs
- LinkConverter.cs
- XhtmlBasicLabelAdapter.cs
- HttpHeaderCollection.cs
- WmiEventSink.cs
- InkCanvasSelection.cs
- TypeEnumerableViewSchema.cs
- ListBoxDesigner.cs
- SqlFlattener.cs
- ControlParser.cs
- hwndwrapper.cs
- XmlElementList.cs
- DynamicDataRoute.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- LateBoundBitmapDecoder.cs
- WorkflowRuntimeServiceElement.cs
- XmlValueConverter.cs
- RotateTransform3D.cs
- MultiPartWriter.cs
- Brush.cs
- GC.cs
- SqlMethodCallConverter.cs
- StorageMappingFragment.cs
- DetailsViewRowCollection.cs
- DecimalMinMaxAggregationOperator.cs