Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Configuration / ProtocolElement.cs / 1305376 / ProtocolElement.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 ProtocolElement : ConfigurationElement { // These three constructors are used by the configuration system. public ProtocolElement() : base() { this.properties.Add(this.name); } public ProtocolElement(WebServiceProtocols protocol) : this() { this.Name = protocol; } [ConfigurationProperty("name", IsKey = true, DefaultValue = WebServiceProtocols.Unknown)] public WebServiceProtocols Name { get { return (WebServiceProtocols)base[this.name]; } set { if (!IsValidProtocolsValue(value)) { value = WebServiceProtocols.Unknown; } base[this.name] = value; } } protected override ConfigurationPropertyCollection Properties { get { return this.properties; } } bool IsValidProtocolsValue(WebServiceProtocols value) { return Enum.IsDefined(typeof(WebServiceProtocols), value); } ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); readonly ConfigurationProperty name = new ConfigurationProperty("name", typeof(WebServiceProtocols), WebServiceProtocols.Unknown, 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
- WinEventQueueItem.cs
- Bidi.cs
- DataTableTypeConverter.cs
- RawMouseInputReport.cs
- Vector3DConverter.cs
- SimplePropertyEntry.cs
- MethodAccessException.cs
- HelpEvent.cs
- SHA384Managed.cs
- WindowInteropHelper.cs
- RunInstallerAttribute.cs
- WmlCalendarAdapter.cs
- EntityObject.cs
- TableLayoutPanel.cs
- AttributeCollection.cs
- DeploymentSectionCache.cs
- ProgramPublisher.cs
- XmlAutoDetectWriter.cs
- ProgressiveCrcCalculatingStream.cs
- XmlEventCache.cs
- SettingsAttributeDictionary.cs
- Polygon.cs
- HuffmanTree.cs
- StringInfo.cs
- CompletedAsyncResult.cs
- X509SubjectKeyIdentifierClause.cs
- FileDataSourceCache.cs
- controlskin.cs
- WeakReadOnlyCollection.cs
- Queue.cs
- BaseCodeDomTreeGenerator.cs
- DiagnosticsConfigurationHandler.cs
- UnaryQueryOperator.cs
- RangeValuePatternIdentifiers.cs
- SiteMapNode.cs
- QilPatternVisitor.cs
- SecurityPermission.cs
- SignedXmlDebugLog.cs
- Util.cs
- MailWebEventProvider.cs
- FocusChangedEventArgs.cs
- SapiRecoInterop.cs
- NameValuePermission.cs
- XmlILConstructAnalyzer.cs
- ObsoleteAttribute.cs
- TypeGeneratedEventArgs.cs
- SqlDataReader.cs
- Matrix.cs
- MsmqNonTransactedPoisonHandler.cs
- XmlAnyElementAttributes.cs
- DecoderFallback.cs
- Enum.cs
- XmlArrayItemAttribute.cs
- DataRecord.cs
- PageSetupDialog.cs
- ToolStripGripRenderEventArgs.cs
- backend.cs
- DispatcherBuilder.cs
- PersistChildrenAttribute.cs
- XPathArrayIterator.cs
- DefaultAsyncDataDispatcher.cs
- MenuBindingsEditorForm.cs
- SmtpNegotiateAuthenticationModule.cs
- XamlGridLengthSerializer.cs
- ContractComponent.cs
- DataSourceViewSchemaConverter.cs
- FaultReasonText.cs
- TraceEventCache.cs
- StdValidatorsAndConverters.cs
- VarInfo.cs
- RelationalExpressions.cs
- ClientBuildManagerCallback.cs
- Process.cs
- TemplatedControlDesigner.cs
- ConfigurationLockCollection.cs
- X509Certificate2.cs
- ImageDesigner.cs
- TextModifier.cs
- UpdatePanelTrigger.cs
- CharacterBuffer.cs
- CapiNative.cs
- ClientUrlResolverWrapper.cs
- KeyMatchBuilder.cs
- ConfigsHelper.cs
- ScriptResourceDefinition.cs
- EdgeModeValidation.cs
- SelectiveScrollingGrid.cs
- CombinedGeometry.cs
- SqlStatistics.cs
- Keywords.cs
- WorkflowExecutor.cs
- StatusBarItem.cs
- DocumentsTrace.cs
- EnvironmentPermission.cs
- XamlStream.cs
- InstanceDataCollectionCollection.cs
- TextBreakpoint.cs
- SQLInt64.cs
- SourceChangedEventArgs.cs
- WebPartAddingEventArgs.cs