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
- ObjectNotFoundException.cs
- ClientEventManager.cs
- WmiInstallComponent.cs
- GradientStop.cs
- DragEventArgs.cs
- ExtensionDataObject.cs
- DataTrigger.cs
- MailMessageEventArgs.cs
- AdornerLayer.cs
- ProcessHost.cs
- ToolStripPanelRow.cs
- XMLSyntaxException.cs
- TransactionInformation.cs
- COM2ColorConverter.cs
- FlowDocumentPaginator.cs
- DataContractJsonSerializer.cs
- CounterSetInstanceCounterDataSet.cs
- CorrelationService.cs
- WebBrowserBase.cs
- EnvelopedPkcs7.cs
- diagnosticsswitches.cs
- PointLight.cs
- PageWrapper.cs
- StringPropertyBuilder.cs
- TypographyProperties.cs
- ParenExpr.cs
- IPHostEntry.cs
- MenuItemStyleCollection.cs
- ListViewPagedDataSource.cs
- LeftCellWrapper.cs
- Accessible.cs
- ResourceReader.cs
- XmlTextReaderImpl.cs
- DataGridTextBoxColumn.cs
- HttpContextWrapper.cs
- ValueType.cs
- BooleanSwitch.cs
- XomlSerializationHelpers.cs
- ListViewUpdatedEventArgs.cs
- EnumerableRowCollection.cs
- DataGridHeaderBorder.cs
- RSATokenProvider.cs
- DocumentPaginator.cs
- SourceLineInfo.cs
- PrincipalPermission.cs
- FileDialogCustomPlace.cs
- GenericAuthenticationEventArgs.cs
- X509WindowsSecurityToken.cs
- AsyncCompletedEventArgs.cs
- MarshalDirectiveException.cs
- Exceptions.cs
- GridProviderWrapper.cs
- GetLedgerEntryForRecipientRequest.cs
- EmptyStringExpandableObjectConverter.cs
- SessionState.cs
- MetadataCache.cs
- HttpCacheVary.cs
- WmlLiteralTextAdapter.cs
- ProcessHostMapPath.cs
- ResourcePermissionBaseEntry.cs
- AutoScrollHelper.cs
- CreateUserErrorEventArgs.cs
- WinEventWrap.cs
- CellTreeNodeVisitors.cs
- PanelStyle.cs
- BufferedReadStream.cs
- DataSvcMapFile.cs
- ClientScriptManager.cs
- RepeatBehavior.cs
- ImportedNamespaceContextItem.cs
- ConsumerConnectionPointCollection.cs
- SymmetricSecurityProtocolFactory.cs
- RectKeyFrameCollection.cs
- ContentWrapperAttribute.cs
- ItemsChangedEventArgs.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- QueryInterceptorAttribute.cs
- MinMaxParagraphWidth.cs
- ToolStripItemClickedEventArgs.cs
- PresentationAppDomainManager.cs
- WebControl.cs
- DataGridViewColumnCollectionDialog.cs
- WebUtility.cs
- CapabilitiesState.cs
- AlphabetConverter.cs
- WebExceptionStatus.cs
- XPathBinder.cs
- FormsIdentity.cs
- MdiWindowListItemConverter.cs
- Sequence.cs
- HtmlTableRow.cs
- DataGridColumnsPage.cs
- OperationCanceledException.cs
- ResourceDisplayNameAttribute.cs
- Socket.cs
- StringValidator.cs
- TimeSpanSecondsConverter.cs
- hresults.cs
- ConfigUtil.cs
- HwndSource.cs