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
- RuntimeIdentifierPropertyAttribute.cs
- _SingleItemRequestCache.cs
- WizardStepBase.cs
- XmlILCommand.cs
- UserNamePasswordValidator.cs
- TargetParameterCountException.cs
- XmlSchemaSimpleContent.cs
- FigureHelper.cs
- HasRunnableWorkflowEvent.cs
- DefinitionBase.cs
- Converter.cs
- UInt32Storage.cs
- FixedSOMGroup.cs
- parserscommon.cs
- XPathNavigatorReader.cs
- Label.cs
- RawStylusInput.cs
- ConnectorRouter.cs
- Collection.cs
- DataGridSortCommandEventArgs.cs
- RegexWorker.cs
- CompressionTransform.cs
- RoleManagerEventArgs.cs
- GroupItem.cs
- DateTimeConverter2.cs
- _SslStream.cs
- WebPartHeaderCloseVerb.cs
- EventSinkActivityDesigner.cs
- ClickablePoint.cs
- DiscoveryReferences.cs
- SynchronizationFilter.cs
- shaperfactoryquerycachekey.cs
- DbConnectionPoolCounters.cs
- DataGridRowHeader.cs
- DefaultBindingPropertyAttribute.cs
- MessageHeaderDescriptionCollection.cs
- DataSourceControl.cs
- ConfigXmlDocument.cs
- PermissionSetTriple.cs
- InvalidOperationException.cs
- COM2ExtendedBrowsingHandler.cs
- XmlRawWriter.cs
- SmtpNtlmAuthenticationModule.cs
- GridToolTip.cs
- ResourceReferenceKeyNotFoundException.cs
- LicenseProviderAttribute.cs
- ShutDownListener.cs
- WorkflowApplicationAbortedEventArgs.cs
- DataGridViewImageCell.cs
- ProfileEventArgs.cs
- HorizontalAlignConverter.cs
- RPIdentityRequirement.cs
- EntityType.cs
- DWriteFactory.cs
- XamlHostingSection.cs
- ToolboxBitmapAttribute.cs
- ClientRoleProvider.cs
- SingleAnimation.cs
- Ref.cs
- CheckBoxField.cs
- PingReply.cs
- TrackingServices.cs
- ValidationException.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- DocumentScope.cs
- PointLightBase.cs
- File.cs
- PreDigestedSignedInfo.cs
- ADRole.cs
- SQLInt64.cs
- ScrollBarRenderer.cs
- Operator.cs
- EnumValAlphaComparer.cs
- MatrixTransform3D.cs
- QuaternionValueSerializer.cs
- UseManagedPresentationBindingElementImporter.cs
- X509WindowsSecurityToken.cs
- BinaryParser.cs
- securitymgrsite.cs
- FlowSwitch.cs
- DelimitedListTraceListener.cs
- regiisutil.cs
- FixedSOMTextRun.cs
- DataGridAddNewRow.cs
- WindowInteropHelper.cs
- SerializationTrace.cs
- ObjectDataSourceView.cs
- TraceSection.cs
- ToolStripItemImageRenderEventArgs.cs
- InstalledFontCollection.cs
- EdmComplexTypeAttribute.cs
- Maps.cs
- SessionStateModule.cs
- GradientSpreadMethodValidation.cs
- CryptographicAttribute.cs
- DesignerWithHeader.cs
- BindingListCollectionView.cs
- PeerToPeerException.cs
- DeflateEmulationStream.cs
- ProxyManager.cs