Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / security / system / security / authentication / ExtendedProtection / configuration / ServiceNameElementCollection.cs / 1305376 / ServiceNameElementCollection.cs
//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Configuration; namespace System.Security.Authentication.ExtendedProtection.Configuration { [ConfigurationCollection(typeof(ServiceNameElement))] public sealed class ServiceNameElementCollection : ConfigurationElementCollection { public ServiceNameElementCollection() { } public ServiceNameElement this[int index] { get { return (ServiceNameElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index, value); } } public new ServiceNameElement this[string name] { get { return (ServiceNameElement)BaseGet(name); } set { if (BaseGet(name) != null) { BaseRemove(name); } BaseAdd(value); } } public void Add(ServiceNameElement element) { BaseAdd(element); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new ServiceNameElement(); } protected override Object GetElementKey(ConfigurationElement element) { if (element == null) throw new ArgumentNullException("element"); return ((ServiceNameElement)element).Key; } public int IndexOf(ServiceNameElement element) { return BaseIndexOf(element); } public void Remove(ServiceNameElement element) { if (element == null) throw new ArgumentNullException("element"); BaseRemove(element.Key); } public void Remove(string name) { BaseRemove(name); } public void RemoveAt(int index) { BaseRemoveAt(index); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Configuration; namespace System.Security.Authentication.ExtendedProtection.Configuration { [ConfigurationCollection(typeof(ServiceNameElement))] public sealed class ServiceNameElementCollection : ConfigurationElementCollection { public ServiceNameElementCollection() { } public ServiceNameElement this[int index] { get { return (ServiceNameElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index, value); } } public new ServiceNameElement this[string name] { get { return (ServiceNameElement)BaseGet(name); } set { if (BaseGet(name) != null) { BaseRemove(name); } BaseAdd(value); } } public void Add(ServiceNameElement element) { BaseAdd(element); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new ServiceNameElement(); } protected override Object GetElementKey(ConfigurationElement element) { if (element == null) throw new ArgumentNullException("element"); return ((ServiceNameElement)element).Key; } public int IndexOf(ServiceNameElement element) { return BaseIndexOf(element); } public void Remove(ServiceNameElement element) { if (element == null) throw new ArgumentNullException("element"); BaseRemove(element.Key); } public void Remove(string name) { BaseRemove(name); } public void RemoveAt(int index) { BaseRemoveAt(index); } } } // 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
- QilTypeChecker.cs
- Latin1Encoding.cs
- XpsDigitalSignature.cs
- XslCompiledTransform.cs
- TextViewSelectionProcessor.cs
- StylusOverProperty.cs
- ApplicationFileCodeDomTreeGenerator.cs
- FileUpload.cs
- PageMediaSize.cs
- SafeNativeMemoryHandle.cs
- PostBackOptions.cs
- ThrowHelper.cs
- Base64Decoder.cs
- GroupByQueryOperator.cs
- VectorConverter.cs
- Logging.cs
- DashStyle.cs
- DesignTimeTemplateParser.cs
- XmlDocument.cs
- InputLangChangeEvent.cs
- SqlNodeAnnotation.cs
- WindowsRichEdit.cs
- RequiredFieldValidator.cs
- XmlSiteMapProvider.cs
- HttpConfigurationContext.cs
- DefaultBinder.cs
- XPathBuilder.cs
- WebServiceFaultDesigner.cs
- Blend.cs
- EdmItemError.cs
- MethodCallTranslator.cs
- Int32CollectionValueSerializer.cs
- XPathNavigator.cs
- TemplatedMailWebEventProvider.cs
- ContentAlignmentEditor.cs
- Empty.cs
- AutoGeneratedField.cs
- CookieHandler.cs
- ServiceRoute.cs
- StateMachineExecutionState.cs
- ThousandthOfEmRealPoints.cs
- SQLDateTimeStorage.cs
- ByteViewer.cs
- GeneralTransform3D.cs
- Path.cs
- ToolboxItem.cs
- LayoutEngine.cs
- ConfigurationManagerHelper.cs
- GroupBoxRenderer.cs
- SaveFileDialog.cs
- SimpleExpression.cs
- MultiDataTrigger.cs
- DiscoveryDocument.cs
- XhtmlTextWriter.cs
- TextPointer.cs
- DataGridCommandEventArgs.cs
- CodeGotoStatement.cs
- EmbeddedMailObject.cs
- DesignTimeData.cs
- PipeStream.cs
- EngineSiteSapi.cs
- Attributes.cs
- TargetPerspective.cs
- SessionStateModule.cs
- SoapReflectionImporter.cs
- VectorCollection.cs
- ProjectionCamera.cs
- XPathSingletonIterator.cs
- PolicyLevel.cs
- ColorConvertedBitmap.cs
- AnnotationAdorner.cs
- ValueQuery.cs
- DetailsViewModeEventArgs.cs
- TextWriter.cs
- CodeNamespaceImportCollection.cs
- RecommendedAsConfigurableAttribute.cs
- BooleanProjectedSlot.cs
- StackOverflowException.cs
- ChangeDirector.cs
- DeclarativeCatalogPart.cs
- ParseElement.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- DataTemplateKey.cs
- XmlSequenceWriter.cs
- ColumnClickEvent.cs
- DataError.cs
- SolidColorBrush.cs
- BitVector32.cs
- SplineKeyFrames.cs
- OciHandle.cs
- SqlCacheDependencySection.cs
- WebPartHelpVerb.cs
- _CacheStreams.cs
- Clipboard.cs
- WinHttpWebProxyFinder.cs
- AttachmentCollection.cs
- TimeStampChecker.cs
- RegexReplacement.cs
- MembershipSection.cs
- Rfc2898DeriveBytes.cs