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
- XmlSchemaGroupRef.cs
- ToolStripItemCollection.cs
- WSHttpBindingCollectionElement.cs
- SafeNativeMethods.cs
- PointAnimation.cs
- TableLayoutSettings.cs
- PerformanceCounterCategory.cs
- CommandManager.cs
- MgmtResManager.cs
- StrokeCollection.cs
- QuadTree.cs
- XamlToRtfWriter.cs
- StrongBox.cs
- CompilationPass2TaskInternal.cs
- GrammarBuilderPhrase.cs
- ListControlConvertEventArgs.cs
- XsdDateTime.cs
- ExpandedProjectionNode.cs
- AttributeEmitter.cs
- KeyValuePair.cs
- propertytag.cs
- ClientOperation.cs
- NamespaceExpr.cs
- Deflater.cs
- BindableAttribute.cs
- BuildProviderCollection.cs
- XmlDataSource.cs
- IpcChannel.cs
- PropertyBuilder.cs
- JsonUriDataContract.cs
- WinEventWrap.cs
- RequiredAttributeAttribute.cs
- DebugTracing.cs
- IssuedSecurityTokenParameters.cs
- GCHandleCookieTable.cs
- oledbmetadatacollectionnames.cs
- HTMLTagNameToTypeMapper.cs
- MetadataArtifactLoaderComposite.cs
- Monitor.cs
- EntityStoreSchemaFilterEntry.cs
- CanonicalFormWriter.cs
- SystemIPv4InterfaceProperties.cs
- XmlReader.cs
- UidPropertyAttribute.cs
- Random.cs
- AnnotationResourceCollection.cs
- HMACMD5.cs
- CompoundFileDeflateTransform.cs
- CommandEventArgs.cs
- SQLDecimalStorage.cs
- Page.cs
- _NTAuthentication.cs
- TargetParameterCountException.cs
- SafeFileMapViewHandle.cs
- TreeSet.cs
- Ipv6Element.cs
- XmlNodeList.cs
- ConfigXmlCDataSection.cs
- RawAppCommandInputReport.cs
- CleanUpVirtualizedItemEventArgs.cs
- ValidateNames.cs
- FreeFormDragDropManager.cs
- WebExceptionStatus.cs
- SchemaRegistration.cs
- NullToBooleanConverter.cs
- RepeatButton.cs
- GenericsInstances.cs
- Sequence.cs
- ExpressionWriter.cs
- LocalizationComments.cs
- Logging.cs
- SamlAuthenticationStatement.cs
- DataGridViewRowConverter.cs
- NegationPusher.cs
- SafeRightsManagementPubHandle.cs
- IProvider.cs
- SqlDataReaderSmi.cs
- DescendantOverDescendantQuery.cs
- ScaleTransform.cs
- RegisteredArrayDeclaration.cs
- Int32CAMarshaler.cs
- DataKeyArray.cs
- DefaultObjectMappingItemCollection.cs
- CacheDependency.cs
- LogExtent.cs
- SecurityException.cs
- HttpStreamXmlDictionaryWriter.cs
- WindowsStartMenu.cs
- AggregationMinMaxHelpers.cs
- COAUTHINFO.cs
- CollectionBuilder.cs
- DropShadowBitmapEffect.cs
- FunctionQuery.cs
- DateTime.cs
- RectIndependentAnimationStorage.cs
- HttpWriter.cs
- SortDescriptionCollection.cs
- ListViewGroupConverter.cs
- DomainUpDown.cs
- DictionaryEntry.cs