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
- StrongNameMembershipCondition.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- HttpProtocolReflector.cs
- _ListenerAsyncResult.cs
- CompilerParameters.cs
- VolatileEnlistmentState.cs
- XsltOutput.cs
- ToolStripPanelRenderEventArgs.cs
- TextRange.cs
- ProfileGroupSettings.cs
- ConditionalAttribute.cs
- ControlPersister.cs
- Splitter.cs
- FuncCompletionCallbackWrapper.cs
- HttpInputStream.cs
- shaperfactoryquerycachekey.cs
- XamlStackWriter.cs
- Object.cs
- AttributeSetAction.cs
- ReverseInheritProperty.cs
- StrokeFIndices.cs
- VirtualPath.cs
- BaseDataListComponentEditor.cs
- RawStylusInputReport.cs
- CorrelationValidator.cs
- CookieProtection.cs
- TypeConverterHelper.cs
- UnauthorizedWebPart.cs
- LoopExpression.cs
- SendMessageRecord.cs
- RangeValidator.cs
- RightNameExpirationInfoPair.cs
- PartialClassGenerationTaskInternal.cs
- AccessedThroughPropertyAttribute.cs
- PermissionToken.cs
- SynchronizedDispatch.cs
- __ConsoleStream.cs
- DragStartedEventArgs.cs
- DefaultPrintController.cs
- MessagingActivityHelper.cs
- pingexception.cs
- SmtpMail.cs
- ChangeTracker.cs
- DataGridToolTip.cs
- CapabilitiesAssignment.cs
- InkSerializer.cs
- BaseServiceProvider.cs
- ZipPackagePart.cs
- ToolBarOverflowPanel.cs
- GradientStopCollection.cs
- CodeMemberMethod.cs
- StateDesigner.TransitionInfo.cs
- Header.cs
- OuterGlowBitmapEffect.cs
- WrappedIUnknown.cs
- Label.cs
- InheritanceContextChangedEventManager.cs
- CodeConstructor.cs
- InvalidPipelineStoreException.cs
- HandleRef.cs
- DetailsViewRowCollection.cs
- ScriptingJsonSerializationSection.cs
- TableItemProviderWrapper.cs
- DependencyPropertyChangedEventArgs.cs
- TypeListConverter.cs
- TemplateBamlTreeBuilder.cs
- PageAsyncTask.cs
- QilExpression.cs
- BrowserCapabilitiesFactory.cs
- DocumentSequenceHighlightLayer.cs
- EmptyStringExpandableObjectConverter.cs
- BamlResourceContent.cs
- MULTI_QI.cs
- ControllableStoryboardAction.cs
- SettingsBindableAttribute.cs
- RegexWriter.cs
- ProfilePropertySettingsCollection.cs
- TraceHandler.cs
- FlowLayoutPanel.cs
- BinaryObjectInfo.cs
- XmlLinkedNode.cs
- InstanceCompleteException.cs
- DebugInfoExpression.cs
- BodyGlyph.cs
- PageBuildProvider.cs
- ApplicationDirectoryMembershipCondition.cs
- ContainerFilterService.cs
- FrugalMap.cs
- QueryResult.cs
- ExceptionUtil.cs
- ConvertEvent.cs
- HttpCachePolicy.cs
- XmlIgnoreAttribute.cs
- Context.cs
- _ListenerAsyncResult.cs
- DbConnectionPoolGroup.cs
- XmlUnspecifiedAttribute.cs
- HtmlDocument.cs
- SQlBooleanStorage.cs
- CustomWebEventKey.cs