Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Discovery / System / ServiceModel / Discovery / ScopeCollection.cs / 1305376 / ScopeCollection.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Discovery { using System; using SR2 = System.ServiceModel.Discovery.SR; // Scope collection is used to store a set of absolute URI's. It // overrides the InsertItem and SetItem to check for relative URI's. // An exception is thrown when a relative URI is found. internal class ScopeCollection : NonNullItemCollection{ protected override void InsertItem(int index, Uri item) { if (item != null && !item.IsAbsoluteUri) { throw FxTrace.Exception.Argument("item", SR2.DiscoveryArgumentInvalidScopeUri(item)); } base.InsertItem(index, item); } protected override void SetItem(int index, Uri item) { if (item != null && !item.IsAbsoluteUri) { throw FxTrace.Exception.Argument("item", SR2.DiscoveryArgumentInvalidScopeUri(item)); } base.SetItem(index, item); } } } // 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
- HttpApplicationFactory.cs
- LocalizabilityAttribute.cs
- RequestUriProcessor.cs
- ClientSettings.cs
- IsolatedStorageException.cs
- TripleDESCryptoServiceProvider.cs
- CodeTypeMember.cs
- TransformerInfo.cs
- TextElementCollection.cs
- HttpRequestBase.cs
- AutomationPropertyInfo.cs
- SqlUserDefinedAggregateAttribute.cs
- VsPropertyGrid.cs
- InvalidFilterCriteriaException.cs
- TypefaceMap.cs
- Clause.cs
- SortedList.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- FrameworkContentElementAutomationPeer.cs
- AsyncResult.cs
- ProcessModuleCollection.cs
- DocumentApplicationJournalEntryEventArgs.cs
- DrawListViewItemEventArgs.cs
- WebServiceResponseDesigner.cs
- ChannelHandler.cs
- AuthorizationRuleCollection.cs
- PopOutPanel.cs
- MetabaseSettings.cs
- ProgressBarRenderer.cs
- DataGridViewComboBoxCell.cs
- GeneralTransform2DTo3D.cs
- URLMembershipCondition.cs
- WindowsFormsHostAutomationPeer.cs
- DoubleStorage.cs
- Size.cs
- ExecutionContext.cs
- SendActivityDesignerTheme.cs
- DataMemberFieldEditor.cs
- ChildrenQuery.cs
- IPEndPointCollection.cs
- ChannelReliableSession.cs
- TextTrailingCharacterEllipsis.cs
- mansign.cs
- ApplicationFileParser.cs
- NonBatchDirectoryCompiler.cs
- XmlSequenceWriter.cs
- ProxyHwnd.cs
- OleDbTransaction.cs
- Win32.cs
- Vector.cs
- WindowsSolidBrush.cs
- Substitution.cs
- NumberSubstitution.cs
- WorkflowViewManager.cs
- CreateSequence.cs
- CustomError.cs
- ImageMapEventArgs.cs
- CatalogZoneBase.cs
- SolidColorBrush.cs
- XsltLibrary.cs
- SharedDp.cs
- CombinedGeometry.cs
- Exceptions.cs
- IdentitySection.cs
- XmlReflectionImporter.cs
- SQLDateTimeStorage.cs
- LineSegment.cs
- AccessDataSource.cs
- BamlResourceContent.cs
- DataSysAttribute.cs
- PkcsUtils.cs
- ExpressionVisitorHelpers.cs
- CommandManager.cs
- TableCell.cs
- Rule.cs
- EncodingTable.cs
- DocumentManager.cs
- XhtmlBasicTextViewAdapter.cs
- StylusPointPropertyUnit.cs
- DataSourceViewSchemaConverter.cs
- DispatcherSynchronizationContext.cs
- InputLangChangeEvent.cs
- EnumValAlphaComparer.cs
- Maps.cs
- DataSourceControl.cs
- RequestQueryProcessor.cs
- FontEmbeddingManager.cs
- Authorization.cs
- Decoder.cs
- AdjustableArrowCap.cs
- ComUdtElement.cs
- DirtyTextRange.cs
- EnterpriseServicesHelper.cs
- ProviderSettings.cs
- WebPartTracker.cs
- Imaging.cs
- NavigateEvent.cs
- ColorAnimation.cs
- ServiceHostFactory.cs
- WebBrowserSiteBase.cs