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
- CellIdBoolean.cs
- WindowsStatic.cs
- FrameworkContentElement.cs
- ThicknessAnimationBase.cs
- httpapplicationstate.cs
- DescendantQuery.cs
- SamlSubjectStatement.cs
- AstNode.cs
- DataGridHeaderBorder.cs
- VBCodeProvider.cs
- Soap12ProtocolImporter.cs
- LogReserveAndAppendState.cs
- RecipientInfo.cs
- MetadataArtifactLoader.cs
- NetworkInformationPermission.cs
- SchemaElementLookUpTable.cs
- InputDevice.cs
- ICollection.cs
- InteropAutomationProvider.cs
- AsymmetricKeyExchangeDeformatter.cs
- CatalogZoneBase.cs
- BinaryMessageEncodingBindingElement.cs
- InvalidCastException.cs
- LocalFileSettingsProvider.cs
- GeneralTransform.cs
- ReadOnlyDataSource.cs
- ExpandoClass.cs
- CroppedBitmap.cs
- IntegerValidatorAttribute.cs
- VisualTreeHelper.cs
- CharAnimationUsingKeyFrames.cs
- AffineTransform3D.cs
- ExpressionParser.cs
- FileLevelControlBuilderAttribute.cs
- TemplateKey.cs
- StorageInfo.cs
- ContextMenuAutomationPeer.cs
- ArgumentException.cs
- FixedSOMTable.cs
- safemediahandle.cs
- CharacterBufferReference.cs
- Native.cs
- DataStreams.cs
- DataContractSerializerElement.cs
- ModuleBuilder.cs
- DragDrop.cs
- TemplateBaseAction.cs
- XsltArgumentList.cs
- PreviewPageInfo.cs
- ColumnBinding.cs
- WeakRefEnumerator.cs
- RenderDataDrawingContext.cs
- PlatformCulture.cs
- DynamicRendererThreadManager.cs
- StorageFunctionMapping.cs
- NullableBoolConverter.cs
- EllipseGeometry.cs
- SortedList.cs
- TaiwanCalendar.cs
- StateBag.cs
- ContextMenuStrip.cs
- WebEventTraceProvider.cs
- TextElementEditingBehaviorAttribute.cs
- parserscommon.cs
- LineServices.cs
- MenuItemStyle.cs
- WebUtil.cs
- SpeakInfo.cs
- FormsAuthenticationUserCollection.cs
- validation.cs
- CopyAction.cs
- ExpressionBuilder.cs
- SqlCacheDependencyDatabase.cs
- Stroke.cs
- InstanceDescriptor.cs
- Utils.cs
- Mouse.cs
- ProfileSettingsCollection.cs
- WindowHideOrCloseTracker.cs
- InfoCardXmlSerializer.cs
- ProcessingInstructionAction.cs
- CompositeFontFamily.cs
- SqlClientMetaDataCollectionNames.cs
- TextBox.cs
- GetFileNameResult.cs
- PtsHost.cs
- TypeReference.cs
- Rect3D.cs
- DrawListViewSubItemEventArgs.cs
- TraceLog.cs
- ManipulationDelta.cs
- DataGridViewButtonColumn.cs
- GeneralTransform3DCollection.cs
- ClassicBorderDecorator.cs
- WebPartEditorCancelVerb.cs
- UniformGrid.cs
- FragmentQueryProcessor.cs
- DetailsViewInsertEventArgs.cs
- HashMembershipCondition.cs
- TreeViewBindingsEditor.cs