Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Configuration / NamespaceInfo.cs / 5 / 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
- URL.cs
- WindowsFormsLinkLabel.cs
- ButtonFieldBase.cs
- ValidationErrorCollection.cs
- SudsWriter.cs
- CurrencyManager.cs
- PrintDialogException.cs
- SafeSecurityHandles.cs
- NumberFormatter.cs
- SqlBinder.cs
- SqlRowUpdatingEvent.cs
- MsmqIntegrationElement.cs
- Dump.cs
- XPathAncestorQuery.cs
- SchemaImporterExtensionElementCollection.cs
- TargetConverter.cs
- OptimizedTemplateContentHelper.cs
- SpecialFolderEnumConverter.cs
- BaseProcessProtocolHandler.cs
- TextTreeUndoUnit.cs
- ManifestBasedResourceGroveler.cs
- CallContext.cs
- RsaSecurityTokenAuthenticator.cs
- DesignerVerbCollection.cs
- DesignerActionUIService.cs
- ShadowGlyph.cs
- RemotingServices.cs
- ErrorHandler.cs
- TableLayoutSettingsTypeConverter.cs
- UseLicense.cs
- ConnectionPoolManager.cs
- CustomValidator.cs
- RuntimeArgumentHandle.cs
- VoiceSynthesis.cs
- MarkupCompilePass1.cs
- EnvironmentPermission.cs
- LocatorPartList.cs
- ComponentRenameEvent.cs
- HostingEnvironmentSection.cs
- IsolatedStorageException.cs
- AnimatedTypeHelpers.cs
- EdmFunctions.cs
- ResourceReferenceExpressionConverter.cs
- ReadOnlyHierarchicalDataSourceView.cs
- UdpDiscoveryEndpointElement.cs
- AgileSafeNativeMemoryHandle.cs
- HebrewCalendar.cs
- RequestQueryProcessor.cs
- SiteMap.cs
- SqlDataSourceView.cs
- CombinedTcpChannel.cs
- SchemaManager.cs
- SoapReflectionImporter.cs
- RuleSettingsCollection.cs
- DataGridCommandEventArgs.cs
- SamlEvidence.cs
- PolygonHotSpot.cs
- SchemaConstraints.cs
- BaseAsyncResult.cs
- ChildTable.cs
- CodeDOMUtility.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- DbMetaDataCollectionNames.cs
- Preprocessor.cs
- HttpContext.cs
- CorrelationManager.cs
- TemplateControlBuildProvider.cs
- ToolStripDropDownButton.cs
- DynamicValueConverter.cs
- HttpCapabilitiesSectionHandler.cs
- BitmapEffectOutputConnector.cs
- ObfuscateAssemblyAttribute.cs
- DocumentOrderQuery.cs
- HwndAppCommandInputProvider.cs
- SecurityPolicyVersion.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ArrayHelper.cs
- PropertyValueUIItem.cs
- DataChangedEventManager.cs
- RijndaelManagedTransform.cs
- PtsPage.cs
- HtmlFormParameterWriter.cs
- Timer.cs
- XmlLinkedNode.cs
- Decoder.cs
- StoreContentChangedEventArgs.cs
- SchemaCollectionCompiler.cs
- MenuItemAutomationPeer.cs
- ContextStaticAttribute.cs
- ContainerUtilities.cs
- Fonts.cs
- ResourceDescriptionAttribute.cs
- SiteMap.cs
- DataBoundControlAdapter.cs
- ResourcesChangeInfo.cs
- mil_sdk_version.cs
- CryptoHelper.cs
- CompoundFileDeflateTransform.cs
- SQLChars.cs
- NamespaceDecl.cs