Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / NamespaceInfo.cs / 1305376 / NamespaceInfo.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.IO; using System.Text; using System.Web.Util; using System.Web.UI; using System.Web.Compilation; using System.Threading; using System.Web.Configuration; using System.Security.Permissions; public sealed class NamespaceInfo : ConfigurationElement { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propNamespace = new ConfigurationProperty("namespace", typeof(string), null, null, StdValidatorsAndConverters.NonEmptyStringValidator, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); static NamespaceInfo() { _properties = new ConfigurationPropertyCollection(); _properties.Add(_propNamespace); } internal NamespaceInfo() { } public NamespaceInfo(String name) : this() { Namespace = name; } public override bool Equals(object namespaceInformation) { NamespaceInfo ns = namespaceInformation as NamespaceInfo; return (ns != null && Namespace == ns.Namespace); } public override int GetHashCode() { return Namespace.GetHashCode(); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("namespace", IsRequired = true, IsKey = true, DefaultValue = "")] [StringValidator(MinLength = 1)] public string Namespace { get { return (string)base[_propNamespace]; } set { base[_propNamespace] = value; } } } } // 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
- ChannelServices.cs
- PlanCompilerUtil.cs
- Rectangle.cs
- DocumentPageTextView.cs
- X509CertificateCollection.cs
- ExpandSegmentCollection.cs
- ListChangedEventArgs.cs
- BuildManagerHost.cs
- Baml2006KnownTypes.cs
- TraceSection.cs
- lengthconverter.cs
- EntityAdapter.cs
- Pointer.cs
- PublisherMembershipCondition.cs
- TypeValidationEventArgs.cs
- ConfigurationStrings.cs
- SizeConverter.cs
- FixedPageAutomationPeer.cs
- TextBox.cs
- DataPagerCommandEventArgs.cs
- ColorPalette.cs
- PassportPrincipal.cs
- Set.cs
- StackOverflowException.cs
- GridViewPageEventArgs.cs
- DependencyPropertyHelper.cs
- compensatingcollection.cs
- AddToCollection.cs
- TripleDESCryptoServiceProvider.cs
- MetadataUtil.cs
- XmlStreamNodeWriter.cs
- PageContentCollection.cs
- SynchronizationFilter.cs
- backend.cs
- WsdlParser.cs
- ZipIORawDataFileBlock.cs
- SqlEnums.cs
- ResourceDictionary.cs
- WhitespaceSignificantCollectionAttribute.cs
- GraphicsPath.cs
- DataKey.cs
- QueryPageSettingsEventArgs.cs
- CollectionEditVerbManager.cs
- WaitHandleCannotBeOpenedException.cs
- ColumnTypeConverter.cs
- BindingSource.cs
- ForeignKeyConstraint.cs
- UIElementHelper.cs
- DefaultAssemblyResolver.cs
- DllHostedComPlusServiceHost.cs
- ComboBox.cs
- ReferencedCollectionType.cs
- CollectionViewGroupInternal.cs
- SettingsAttributeDictionary.cs
- ParameterReplacerVisitor.cs
- SerializationObjectManager.cs
- CombinedHttpChannel.cs
- Axis.cs
- DataGridState.cs
- EventLogPermissionAttribute.cs
- FlowLayout.cs
- MethodBuilderInstantiation.cs
- WebBrowser.cs
- BamlBinaryWriter.cs
- StrongNamePublicKeyBlob.cs
- TextEditorSpelling.cs
- BuildProviderAppliesToAttribute.cs
- BaseAsyncResult.cs
- XhtmlConformanceSection.cs
- TreeViewDesigner.cs
- XPathParser.cs
- ALinqExpressionVisitor.cs
- PointAnimation.cs
- RowCache.cs
- ImageAutomationPeer.cs
- HttpDebugHandler.cs
- RootBrowserWindowProxy.cs
- HtmlInputFile.cs
- DispatcherExceptionFilterEventArgs.cs
- XmlSchemaExporter.cs
- DummyDataSource.cs
- UndoEngine.cs
- SqlCacheDependencyDatabase.cs
- WsatServiceAddress.cs
- IssuanceLicense.cs
- HGlobalSafeHandle.cs
- CaretElement.cs
- MSAAEventDispatcher.cs
- FontWeight.cs
- WebPartCatalogAddVerb.cs
- CompressionTransform.cs
- ComNativeDescriptor.cs
- UITypeEditor.cs
- DataServiceQueryOfT.cs
- MatchingStyle.cs
- SafeArrayRankMismatchException.cs
- EditorBrowsableAttribute.cs
- UnsafeNetInfoNativeMethods.cs
- WebPartCatalogCloseVerb.cs
- XmlImplementation.cs