Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewRowPostPaintEventArgs.cs
- DataGridTemplateColumn.cs
- DiscoveryClientOutputChannel.cs
- NameObjectCollectionBase.cs
- LogWriteRestartAreaAsyncResult.cs
- RangeValidator.cs
- ListViewSelectEventArgs.cs
- MachineKeyConverter.cs
- ApplicationDirectory.cs
- XmlCustomFormatter.cs
- PropertyPathConverter.cs
- StaticExtensionConverter.cs
- MediaTimeline.cs
- WebServiceHostFactory.cs
- SqlDataSourceFilteringEventArgs.cs
- HostSecurityManager.cs
- Size.cs
- LogEntrySerialization.cs
- ReflectionServiceProvider.cs
- GridViewRowPresenterBase.cs
- ObjectResult.cs
- GroupQuery.cs
- ResXResourceReader.cs
- path.cs
- VectorAnimationBase.cs
- XmlCollation.cs
- OleDbErrorCollection.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TextDecorationUnitValidation.cs
- UidPropertyAttribute.cs
- ProfileBuildProvider.cs
- FixedPageProcessor.cs
- TextEditorSpelling.cs
- Int32RectValueSerializer.cs
- PerSessionInstanceContextProvider.cs
- Vector3DAnimationBase.cs
- GenericIdentity.cs
- ContentDisposition.cs
- TypeConverterMarkupExtension.cs
- WindowsToolbar.cs
- LogicalExpr.cs
- CodeTypeDeclaration.cs
- Clipboard.cs
- MsmqIntegrationInputChannel.cs
- SqlCachedBuffer.cs
- CqlLexerHelpers.cs
- TileBrush.cs
- XmlAttributeCollection.cs
- ContainerControl.cs
- IdentityManager.cs
- SQLByteStorage.cs
- XslCompiledTransform.cs
- FunctionDetailsReader.cs
- LinqDataSource.cs
- ToolStripContainer.cs
- ProjectionCamera.cs
- StrongNamePublicKeyBlob.cs
- DrawingVisual.cs
- FileDialogCustomPlacesCollection.cs
- DashStyle.cs
- MeshGeometry3D.cs
- NullableDecimalAverageAggregationOperator.cs
- FolderNameEditor.cs
- Attributes.cs
- LabelEditEvent.cs
- TransactionFlowBindingElementImporter.cs
- ApplicationException.cs
- ProviderMetadata.cs
- XmlDocumentType.cs
- NavigationProperty.cs
- ToolStripItemClickedEventArgs.cs
- EllipseGeometry.cs
- Vector3DKeyFrameCollection.cs
- PerformanceCounter.cs
- CombinedTcpChannel.cs
- InvalidCastException.cs
- TreeNodeSelectionProcessor.cs
- InstallerTypeAttribute.cs
- AnimationStorage.cs
- RawStylusActions.cs
- BmpBitmapDecoder.cs
- ListViewPagedDataSource.cs
- QualifiedCellIdBoolean.cs
- Property.cs
- MimeAnyImporter.cs
- COM2ComponentEditor.cs
- InputMethodStateTypeInfo.cs
- ScalarOps.cs
- RichTextBox.cs
- RenderDataDrawingContext.cs
- RectAnimationBase.cs
- PanningMessageFilter.cs
- StubHelpers.cs
- ColorKeyFrameCollection.cs
- X509Chain.cs
- AttachedPropertyBrowsableAttribute.cs
- GenerateTemporaryTargetAssembly.cs
- ResolvedKeyFrameEntry.cs
- RegexTree.cs
- StreamingContext.cs