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
- ICspAsymmetricAlgorithm.cs
- TriggerBase.cs
- CodeSnippetTypeMember.cs
- ArraySortHelper.cs
- PrintPreviewControl.cs
- TransformerTypeCollection.cs
- PostBackOptions.cs
- NumericExpr.cs
- DataGridPreparingCellForEditEventArgs.cs
- CurrentTimeZone.cs
- FrameSecurityDescriptor.cs
- SqlErrorCollection.cs
- XmlNamespaceManager.cs
- TimelineClockCollection.cs
- SerializationBinder.cs
- CuspData.cs
- DocumentViewer.cs
- ThicknessConverter.cs
- PropertyExpression.cs
- ZoneMembershipCondition.cs
- SQLBinaryStorage.cs
- Misc.cs
- ResourceAttributes.cs
- SessionStateContainer.cs
- SqlRewriteScalarSubqueries.cs
- EndPoint.cs
- ClientScriptManager.cs
- DbProviderServices.cs
- CollectionViewGroupInternal.cs
- ConfigXmlWhitespace.cs
- TextRunCache.cs
- ModelEditingScope.cs
- PassportAuthenticationEventArgs.cs
- CompilerScopeManager.cs
- SystemWebSectionGroup.cs
- XsltLoader.cs
- WebPartRestoreVerb.cs
- GeometryGroup.cs
- BaseParser.cs
- TypeConstant.cs
- WebPartZoneBaseDesigner.cs
- DataGridViewCellValidatingEventArgs.cs
- KerberosTicketHashIdentifierClause.cs
- TextStore.cs
- XmlCollation.cs
- EditorResources.cs
- FunctionQuery.cs
- ColumnMapVisitor.cs
- TypeLibConverter.cs
- GroupBox.cs
- ResXFileRef.cs
- CodeGen.cs
- ChannelManager.cs
- FigureParagraph.cs
- StickyNoteContentControl.cs
- ButtonDesigner.cs
- Update.cs
- SpeechAudioFormatInfo.cs
- TraceLevelStore.cs
- ZoneIdentityPermission.cs
- CompilerGeneratedAttribute.cs
- ViewBox.cs
- dsa.cs
- IdentityReference.cs
- AttributeConverter.cs
- ModulesEntry.cs
- HttpRequest.cs
- ConfigurationManagerInternal.cs
- EntityCommandDefinition.cs
- DynamicMetaObjectBinder.cs
- CodeFieldReferenceExpression.cs
- ReflectionUtil.cs
- __Filters.cs
- ECDsa.cs
- MouseEvent.cs
- BuildProviderCollection.cs
- TextWriter.cs
- StreamUpgradeAcceptor.cs
- ManagementOperationWatcher.cs
- GraphicsPath.cs
- BitmapEffectInputData.cs
- SerializationException.cs
- InvalidOleVariantTypeException.cs
- CustomAttributeFormatException.cs
- counter.cs
- KeyEventArgs.cs
- EncodingTable.cs
- PairComparer.cs
- TemplateComponentConnector.cs
- WsatTransactionHeader.cs
- ListBindingHelper.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- SafeLibraryHandle.cs
- SafeLocalAllocation.cs
- FlowDocumentScrollViewer.cs
- SecurityHelper.cs
- ProjectionCamera.cs
- Sql8ExpressionRewriter.cs
- IntegerValidatorAttribute.cs
- RMPublishingDialog.cs