Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Discovery / System / ServiceModel / Discovery / Configuration / ScopeElement.cs / 1305376 / ScopeElement.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Discovery.Configuration { using System.Configuration; using System.Runtime; using SR2 = System.ServiceModel.Discovery.SR; [Fx.Tag.XamlVisible(false)] public sealed class ScopeElement : ConfigurationElement { ConfigurationPropertyCollection properties; [ConfigurationProperty(ConfigurationStrings.Scope, Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)] [CallbackValidator(CallbackMethodName = "ScopeValidatorCallback", Type = typeof(ScopeElement))] public Uri Scope { get { return (Uri)base[ConfigurationStrings.Scope]; } set { base[ConfigurationStrings.Scope] = value; } } protected override ConfigurationPropertyCollection Properties { get { if (this.properties == null) { ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); properties.Add( new ConfigurationProperty( ConfigurationStrings.Scope, typeof(Uri), null, null, new CallbackValidator(typeof(Uri), new ValidatorCallback(ScopeElement.ScopeValidatorCallback)), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey)); this.properties = properties; } return this.properties; } } internal static void ScopeValidatorCallback(object scope) { if ((scope != null) && !((Uri)scope).IsAbsoluteUri) { throw FxTrace.Exception.AsError(new ArgumentException(SR2.DiscoveryConfigInvalidScopeUri(scope))); } } } } // 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
- SmtpReplyReader.cs
- WindowsStatic.cs
- ColorConverter.cs
- ErrorInfoXmlDocument.cs
- sqlnorm.cs
- InvokeMethod.cs
- StringAnimationBase.cs
- mactripleDES.cs
- MemberMaps.cs
- ToolStripOverflow.cs
- UidPropertyAttribute.cs
- DataServiceBehavior.cs
- FixedSOMLineCollection.cs
- OracleBinary.cs
- ReservationNotFoundException.cs
- XmlSchemaImport.cs
- XmlLanguage.cs
- SelectionBorderGlyph.cs
- ErrorWebPart.cs
- FastEncoder.cs
- NetPeerTcpBinding.cs
- DetailsViewRow.cs
- DataColumnPropertyDescriptor.cs
- TextRunProperties.cs
- UnmanagedMemoryStreamWrapper.cs
- KeyedHashAlgorithm.cs
- CheckBox.cs
- SchemaMapping.cs
- WebResourceAttribute.cs
- CodeExpressionCollection.cs
- HttpCachePolicyElement.cs
- Constants.cs
- QilSortKey.cs
- JavaScriptSerializer.cs
- XPathException.cs
- TextTreeRootNode.cs
- ManualResetEvent.cs
- ProgressiveCrcCalculatingStream.cs
- SqlVersion.cs
- Stackframe.cs
- Stack.cs
- Span.cs
- ToolStripItemBehavior.cs
- Convert.cs
- InputProviderSite.cs
- AnnotationService.cs
- BitmapSource.cs
- MemberHolder.cs
- IODescriptionAttribute.cs
- StringBlob.cs
- ConfigurationProperty.cs
- SimpleBitVector32.cs
- CacheOutputQuery.cs
- BrowserInteropHelper.cs
- ExpressionNormalizer.cs
- Int32KeyFrameCollection.cs
- ResourceAssociationSetEnd.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- MonikerBuilder.cs
- ProfileGroupSettingsCollection.cs
- RecordsAffectedEventArgs.cs
- ProcessManager.cs
- X509Certificate.cs
- ExpandableObjectConverter.cs
- MsmqElementBase.cs
- FormDocumentDesigner.cs
- _IPv4Address.cs
- CombinedGeometry.cs
- BuiltInExpr.cs
- StorageAssociationSetMapping.cs
- SqlNodeAnnotation.cs
- TabRenderer.cs
- BasicKeyConstraint.cs
- FormatPage.cs
- AnnotationAuthorChangedEventArgs.cs
- StrokeDescriptor.cs
- httpserverutility.cs
- FontDifferentiator.cs
- FilterException.cs
- ContentType.cs
- TraceSwitch.cs
- DifferencingCollection.cs
- RoutedEventValueSerializer.cs
- TaskResultSetter.cs
- RepeatButton.cs
- FixedPageProcessor.cs
- TextEditorSpelling.cs
- Evidence.cs
- InfoCardBinaryReader.cs
- DbExpressionVisitor.cs
- SchemaElement.cs
- QilInvokeEarlyBound.cs
- ResourceExpressionBuilder.cs
- BaseConfigurationRecord.cs
- CheckBox.cs
- RtfNavigator.cs
- TemplateNameScope.cs
- ScaleTransform.cs
- RootBrowserWindowProxy.cs
- Invariant.cs