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
- PageCatalogPart.cs
- UidPropertyAttribute.cs
- GiveFeedbackEvent.cs
- FormatterServices.cs
- PrintingPermissionAttribute.cs
- _CacheStreams.cs
- PathSegmentCollection.cs
- PagerStyle.cs
- Calendar.cs
- SharedDp.cs
- SqlNotificationEventArgs.cs
- TypeBuilderInstantiation.cs
- ListViewGroupCollectionEditor.cs
- Behavior.cs
- BasePropertyDescriptor.cs
- ThicknessAnimationBase.cs
- XamlToRtfParser.cs
- CanonicalFontFamilyReference.cs
- ColumnWidthChangingEvent.cs
- FontUnitConverter.cs
- PageTheme.cs
- ListViewDesigner.cs
- XmlHierarchicalDataSourceView.cs
- FixedSOMSemanticBox.cs
- OperationResponse.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- ProfileGroupSettings.cs
- BufferModeSettings.cs
- SQLDecimal.cs
- SourceSwitch.cs
- CursorConverter.cs
- CodeTryCatchFinallyStatement.cs
- InstancePersistenceCommandException.cs
- BinaryFormatter.cs
- IImplicitResourceProvider.cs
- ObjectQueryExecutionPlan.cs
- OleDbError.cs
- CheckedListBox.cs
- Parameter.cs
- BitStack.cs
- SourceLineInfo.cs
- SiteMapNodeItem.cs
- XPathScanner.cs
- StorageTypeMapping.cs
- TextTreeRootTextBlock.cs
- Int64AnimationUsingKeyFrames.cs
- IndicFontClient.cs
- UIElementParaClient.cs
- ExpressionVisitor.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- Model3DGroup.cs
- SubstitutionList.cs
- DrawListViewItemEventArgs.cs
- ResourcePermissionBase.cs
- Slider.cs
- DbParameterCollection.cs
- CharacterShapingProperties.cs
- JsonFaultDetail.cs
- PointUtil.cs
- VisualBasicExpressionConverter.cs
- XmlNodeChangedEventArgs.cs
- FileDialogCustomPlace.cs
- XmlWrappingReader.cs
- WeakReferenceList.cs
- DataObjectAttribute.cs
- AutomationTextAttribute.cs
- DefaultShape.cs
- TextCollapsingProperties.cs
- CloudCollection.cs
- GroupBox.cs
- MsmqIntegrationProcessProtocolHandler.cs
- SafeUserTokenHandle.cs
- MessageDescriptionCollection.cs
- PersonalizationAdministration.cs
- CommonEndpointBehaviorElement.cs
- InputEventArgs.cs
- DoubleAnimationClockResource.cs
- Nullable.cs
- DataGridTextBox.cs
- XsltArgumentList.cs
- SimpleBitVector32.cs
- AnimatedTypeHelpers.cs
- CardSpaceSelector.cs
- FontInfo.cs
- _CacheStreams.cs
- FormsAuthentication.cs
- ToolStripPanelRow.cs
- ConnectionStringsExpressionEditor.cs
- Item.cs
- StreamingContext.cs
- InputScopeManager.cs
- CountdownEvent.cs
- ImageButton.cs
- MimeAnyImporter.cs
- SafeThemeHandle.cs
- MenuEventArgs.cs
- ProcessHost.cs
- BindingContext.cs
- WindowsAltTab.cs
- EastAsianLunisolarCalendar.cs