Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Configuration / WsiProfilesElement.cs / 1305376 / WsiProfilesElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Web.Services.Configuration { using System; using System.Configuration; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Security.Permissions; public sealed class WsiProfilesElement : ConfigurationElement { // These three constructors are used by the configuration system. public WsiProfilesElement() : base() { this.properties.Add(this.name); } public WsiProfilesElement(WsiProfiles name) : this() { this.Name = name; } [ConfigurationProperty("name", IsKey = true, DefaultValue = WsiProfiles.None)] public WsiProfiles Name { get { return (WsiProfiles)base[this.name]; } set { if (!IsValidWsiProfilesValue(value)) { throw new ArgumentOutOfRangeException("value"); } base[this.name] = value; } } protected override ConfigurationPropertyCollection Properties { get { return this.properties; } } bool IsValidWsiProfilesValue(WsiProfiles value) { return Enum.IsDefined(typeof(WsiProfiles), value); } ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); readonly ConfigurationProperty name = new ConfigurationProperty("name", typeof(WsiProfiles), WsiProfiles.None, ConfigurationPropertyOptions.IsKey); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Web.Services.Configuration { using System; using System.Configuration; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Security.Permissions; public sealed class WsiProfilesElement : ConfigurationElement { // These three constructors are used by the configuration system. public WsiProfilesElement() : base() { this.properties.Add(this.name); } public WsiProfilesElement(WsiProfiles name) : this() { this.Name = name; } [ConfigurationProperty("name", IsKey = true, DefaultValue = WsiProfiles.None)] public WsiProfiles Name { get { return (WsiProfiles)base[this.name]; } set { if (!IsValidWsiProfilesValue(value)) { throw new ArgumentOutOfRangeException("value"); } base[this.name] = value; } } protected override ConfigurationPropertyCollection Properties { get { return this.properties; } } bool IsValidWsiProfilesValue(WsiProfiles value) { return Enum.IsDefined(typeof(WsiProfiles), value); } ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); readonly ConfigurationProperty name = new ConfigurationProperty("name", typeof(WsiProfiles), WsiProfiles.None, ConfigurationPropertyOptions.IsKey); } } // 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
- ServiceHostingEnvironmentSection.cs
- SecurityTokenValidationException.cs
- Set.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- InternalControlCollection.cs
- CopyOnWriteList.cs
- ISAPIRuntime.cs
- EntityEntry.cs
- FormsAuthenticationTicket.cs
- PointAnimationBase.cs
- CustomCredentialPolicy.cs
- ProfileSettings.cs
- BrowserCapabilitiesCompiler.cs
- SqlCacheDependencyDatabaseCollection.cs
- ListBox.cs
- UDPClient.cs
- ArraySubsetEnumerator.cs
- ReverseInheritProperty.cs
- CircleHotSpot.cs
- PrintPreviewDialog.cs
- NumericUpDown.cs
- MenuEventArgs.cs
- TreeBuilder.cs
- CodeMemberMethod.cs
- XslAst.cs
- CallbackHandler.cs
- EventWaitHandleSecurity.cs
- MexHttpBindingElement.cs
- BrowserInteropHelper.cs
- TextTreeTextElementNode.cs
- OracleEncoding.cs
- DoubleAverageAggregationOperator.cs
- TextServicesHost.cs
- InsufficientExecutionStackException.cs
- ISSmlParser.cs
- __Filters.cs
- UInt32Storage.cs
- InvalidComObjectException.cs
- Emitter.cs
- SoapTypeAttribute.cs
- DbDataSourceEnumerator.cs
- ConnectionPoint.cs
- ManagedFilter.cs
- XmlSchemaAnyAttribute.cs
- PathParser.cs
- figurelength.cs
- FixedSOMFixedBlock.cs
- followingquery.cs
- DataServiceHost.cs
- Light.cs
- ChangePassword.cs
- DesignerActionUIStateChangeEventArgs.cs
- DataServiceQueryException.cs
- CodeGenerator.cs
- DbProviderFactoriesConfigurationHandler.cs
- ActiveXContainer.cs
- BigInt.cs
- ValidatingReaderNodeData.cs
- WebControlToolBoxItem.cs
- SqlUDTStorage.cs
- ColorAnimationBase.cs
- MetaDataInfo.cs
- ScrollEvent.cs
- DataKeyCollection.cs
- Pkcs7Recipient.cs
- BrowserCapabilitiesFactoryBase.cs
- WebEventCodes.cs
- Int32Collection.cs
- Page.cs
- WebSysDefaultValueAttribute.cs
- LogFlushAsyncResult.cs
- XmlMemberMapping.cs
- xdrvalidator.cs
- ButtonBaseAutomationPeer.cs
- ExclusiveCanonicalizationTransform.cs
- CompilerScope.cs
- Cursor.cs
- DataSvcMapFileSerializer.cs
- SmiMetaDataProperty.cs
- WindowsButton.cs
- ComponentResourceKey.cs
- DrawingVisualDrawingContext.cs
- KeyProperty.cs
- ReversePositionQuery.cs
- Filter.cs
- UnsafePeerToPeerMethods.cs
- BuildProviderAppliesToAttribute.cs
- QueryCursorEventArgs.cs
- DependencyPropertyKey.cs
- ProtocolsConfigurationHandler.cs
- SelectionWordBreaker.cs
- DbConnectionInternal.cs
- StorageBasedPackageProperties.cs
- TargetControlTypeCache.cs
- XmlNotation.cs
- DataBoundControlHelper.cs
- OutputCacheSettingsSection.cs
- TextSerializer.cs
- PathFigureCollection.cs
- Stack.cs