Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / Configuration / NamespaceInfo.cs / 1 / 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; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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. //------------------------------------------------------------------------------ //// 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; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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
- RtfFormatStack.cs
- OleDbWrapper.cs
- RawMouseInputReport.cs
- FolderBrowserDialog.cs
- transactioncontext.cs
- WorkflowMarkupSerializationProvider.cs
- Oci.cs
- MultipleViewPattern.cs
- EntitySetRetriever.cs
- Transform3D.cs
- CustomTrackingRecord.cs
- ButtonAutomationPeer.cs
- ClosableStream.cs
- DocumentViewerConstants.cs
- BCLDebug.cs
- FollowerQueueCreator.cs
- WebZoneDesigner.cs
- OpenTypeLayout.cs
- ChannelToken.cs
- WSUtilitySpecificationVersion.cs
- DefaultTextStore.cs
- RectAnimation.cs
- HostedHttpRequestAsyncResult.cs
- UncommonField.cs
- EntityConnection.cs
- ConfigurationStrings.cs
- AnonymousIdentificationSection.cs
- DtdParser.cs
- GatewayIPAddressInformationCollection.cs
- DateTimeConstantAttribute.cs
- CompilerError.cs
- SerializationHelper.cs
- EncoderParameter.cs
- XmlWrappingReader.cs
- HandleCollector.cs
- HashSet.cs
- FtpCachePolicyElement.cs
- StylusOverProperty.cs
- OdbcUtils.cs
- XmlSchemaException.cs
- CompilationUtil.cs
- AutomationAttributeInfo.cs
- MDIWindowDialog.cs
- Propagator.JoinPropagator.cs
- RealizationContext.cs
- StringWriter.cs
- ProcessInfo.cs
- CreatingCookieEventArgs.cs
- Message.cs
- SqlRowUpdatedEvent.cs
- StringAnimationBase.cs
- SizeFConverter.cs
- TextSpan.cs
- sqlnorm.cs
- Popup.cs
- DeadLetterQueue.cs
- ImagingCache.cs
- CancellationTokenSource.cs
- MetadataCollection.cs
- FocusChangedEventArgs.cs
- SoapAttributes.cs
- XmlChoiceIdentifierAttribute.cs
- AssemblyFilter.cs
- SliderAutomationPeer.cs
- SQLResource.cs
- ControlCollection.cs
- DynamicVirtualDiscoSearcher.cs
- StyleSheetRefUrlEditor.cs
- SourceInterpreter.cs
- _HTTPDateParse.cs
- EqualityComparer.cs
- SlotInfo.cs
- AncillaryOps.cs
- StringSorter.cs
- AspNetRouteServiceHttpHandler.cs
- FormsAuthenticationCredentials.cs
- UserPreferenceChangingEventArgs.cs
- Debug.cs
- CommandLibraryHelper.cs
- AmbientValueAttribute.cs
- WorkflowOperationBehavior.cs
- EntitySetBase.cs
- ObjectPropertyMapping.cs
- DockingAttribute.cs
- ExpressionTextBox.xaml.cs
- CodeGenerator.cs
- MobileTextWriter.cs
- RangeValidator.cs
- RoutedEventHandlerInfo.cs
- CodeTypeOfExpression.cs
- HwndMouseInputProvider.cs
- ConsoleEntryPoint.cs
- GeneralTransformGroup.cs
- FolderBrowserDialogDesigner.cs
- PriorityRange.cs
- DebugView.cs
- WebServiceParameterData.cs
- EventMemberCodeDomSerializer.cs
- HttpModuleCollection.cs
- StrokeNodeOperations2.cs