Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ProtectedConfigurationProviderCollection.cs / 1305376 / ProtectedConfigurationProviderCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Collections.Specialized; using System.Runtime.Serialization; using System.Configuration.Provider; using System.Xml; //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// public class ProtectedConfigurationProviderCollection : ProviderCollection { public override void Add(ProviderBase provider) { if( provider == null ) { throw new ArgumentNullException( "provider" ); } if( !( provider is ProtectedConfigurationProvider ) ) { throw new ArgumentException(SR.GetString(SR.Config_provider_must_implement_type, typeof(ProtectedConfigurationProvider).ToString()), "provider"); } base.Add( provider ); } new public ProtectedConfigurationProvider this[string name] { get { return (ProtectedConfigurationProvider)base[name]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Collections.Specialized; using System.Runtime.Serialization; using System.Configuration.Provider; using System.Xml; //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// public class ProtectedConfigurationProviderCollection : ProviderCollection { public override void Add(ProviderBase provider) { if( provider == null ) { throw new ArgumentNullException( "provider" ); } if( !( provider is ProtectedConfigurationProvider ) ) { throw new ArgumentException(SR.GetString(SR.Config_provider_must_implement_type, typeof(ProtectedConfigurationProvider).ToString()), "provider"); } base.Add( provider ); } new public ProtectedConfigurationProvider this[string name] { get { return (ProtectedConfigurationProvider)base[name]; } } } } // 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
- SmiRecordBuffer.cs
- Variant.cs
- BindingCollection.cs
- Attributes.cs
- RegexReplacement.cs
- Message.cs
- CreateUserWizardStep.cs
- PropertyToken.cs
- StorageComplexPropertyMapping.cs
- TextureBrush.cs
- AlignmentYValidation.cs
- PeerNameRecordCollection.cs
- IdentityReference.cs
- OperationInfoBase.cs
- NonParentingControl.cs
- AcceleratedTokenAuthenticator.cs
- MetadataCollection.cs
- ScriptResourceHandler.cs
- XmlMapping.cs
- TextCharacters.cs
- SettingsPropertyWrongTypeException.cs
- DesignerCalendarAdapter.cs
- ObjectParameterCollection.cs
- CompensateDesigner.cs
- CommonGetThemePartSize.cs
- FontFamilyIdentifier.cs
- IgnoreFileBuildProvider.cs
- Timer.cs
- HeaderLabel.cs
- CaseKeyBox.ViewModel.cs
- ThreadExceptionEvent.cs
- WebPartZone.cs
- XPathDocument.cs
- IncomingWebResponseContext.cs
- SecurityResources.cs
- MetadataItemCollectionFactory.cs
- RoleManagerModule.cs
- SmtpReplyReader.cs
- DataBindingsDialog.cs
- HandleCollector.cs
- ArraySegment.cs
- ConfigurationCollectionAttribute.cs
- SchemaImporterExtensionElement.cs
- DesignTimeVisibleAttribute.cs
- NativeMethods.cs
- ErrorFormatterPage.cs
- DocumentSequenceHighlightLayer.cs
- ThreadLocal.cs
- InputReport.cs
- basenumberconverter.cs
- TextAutomationPeer.cs
- ObjectStorage.cs
- sqlmetadatafactory.cs
- WpfSharedXamlSchemaContext.cs
- XmlBoundElement.cs
- IPHostEntry.cs
- smtpconnection.cs
- DataSourceCache.cs
- ListControlBoundActionList.cs
- SystemColors.cs
- Rule.cs
- MainMenu.cs
- SafeNativeMethodsOther.cs
- BaseContextMenu.cs
- RelOps.cs
- Vector3DAnimation.cs
- PermissionAttributes.cs
- MD5.cs
- BCryptSafeHandles.cs
- CharEnumerator.cs
- UpdatableGenericsFeature.cs
- KeyMatchBuilder.cs
- RTLAwareMessageBox.cs
- ResXResourceSet.cs
- XmlSchemaGroup.cs
- Duration.cs
- SerializationFieldInfo.cs
- NamedPermissionSet.cs
- XmlSchemaType.cs
- EncryptedType.cs
- FormViewPageEventArgs.cs
- BitHelper.cs
- LostFocusEventManager.cs
- TypeResolvingOptionsAttribute.cs
- BinaryMessageFormatter.cs
- AsyncDataRequest.cs
- CfgRule.cs
- PolyBezierSegment.cs
- XmlAnyElementAttributes.cs
- ShaperBuffers.cs
- ListCollectionView.cs
- DrawListViewColumnHeaderEventArgs.cs
- WebPartManagerInternals.cs
- CustomSignedXml.cs
- HttpProfileBase.cs
- MappableObjectManager.cs
- ApplicationSecurityManager.cs
- ServiceContractGenerator.cs
- VersionedStream.cs
- DataComponentMethodGenerator.cs