Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Activation / AspNetCompatibilityRequirementsMode.cs / 1 / AspNetCompatibilityRequirementsMode.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Activation { using System.ComponentModel; public enum AspNetCompatibilityRequirementsMode { NotAllowed, Allowed, Required, } static class AspNetCompatibilityRequirementsModeHelper { static public bool IsDefined(AspNetCompatibilityRequirementsMode x) { return x == AspNetCompatibilityRequirementsMode.NotAllowed || x == AspNetCompatibilityRequirementsMode.Allowed || x == AspNetCompatibilityRequirementsMode.Required || false; } public static void Validate(AspNetCompatibilityRequirementsMode value) { if (!IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(AspNetCompatibilityRequirementsMode))); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConnectionOrientedTransportChannelListener.cs
- DataGridBoolColumn.cs
- FastEncoderWindow.cs
- ImageMap.cs
- ResourceIDHelper.cs
- DataSourceHelper.cs
- StringInfo.cs
- XmlTypeAttribute.cs
- CodeTypeParameter.cs
- DbConnectionPoolGroup.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ObjectNotFoundException.cs
- DemultiplexingClientMessageFormatter.cs
- UnSafeCharBuffer.cs
- WebPartCatalogCloseVerb.cs
- GenerateTemporaryTargetAssembly.cs
- ColumnHeader.cs
- Point3D.cs
- FileVersionInfo.cs
- DataGridViewSelectedColumnCollection.cs
- XmlSerializationGeneratedCode.cs
- sqlinternaltransaction.cs
- WrappedIUnknown.cs
- CacheDict.cs
- WindowClosedEventArgs.cs
- Error.cs
- DisposableCollectionWrapper.cs
- ProfileService.cs
- externdll.cs
- ValueUnavailableException.cs
- ModifierKeysValueSerializer.cs
- PropertyEmitter.cs
- CompiledQuery.cs
- CounterSampleCalculator.cs
- TargetFrameworkUtil.cs
- DependencyPropertyValueSerializer.cs
- ListItem.cs
- JapaneseLunisolarCalendar.cs
- RowCache.cs
- StyleXamlParser.cs
- WrappedIUnknown.cs
- TextSpan.cs
- CounterCreationData.cs
- HostUtils.cs
- Icon.cs
- ColorConverter.cs
- PageClientProxyGenerator.cs
- EntityTransaction.cs
- ISAPIApplicationHost.cs
- MsmqIntegrationOutputChannel.cs
- ElementFactory.cs
- XmlObjectSerializerWriteContextComplex.cs
- DocumentViewerHelper.cs
- ExceptionHandlersDesigner.cs
- TableItemProviderWrapper.cs
- RenamedEventArgs.cs
- NameValueFileSectionHandler.cs
- _ScatterGatherBuffers.cs
- DataGridCellsPresenter.cs
- BindingCollection.cs
- PrincipalPermission.cs
- _NTAuthentication.cs
- HttpStreamXmlDictionaryReader.cs
- EncodingInfo.cs
- BindStream.cs
- LogWriteRestartAreaAsyncResult.cs
- GuidelineCollection.cs
- DesignerPerfEventProvider.cs
- SoapReflectionImporter.cs
- FocusManager.cs
- EnumerableRowCollection.cs
- ProcessModelInfo.cs
- ConfigXmlDocument.cs
- XmlWrappingReader.cs
- NameSpaceEvent.cs
- ShapeTypeface.cs
- Keyboard.cs
- MsmqTransportSecurity.cs
- RoleBoolean.cs
- JavascriptCallbackBehaviorAttribute.cs
- shaperfactory.cs
- RoleGroupCollectionEditor.cs
- OutputCacheSection.cs
- LinearGradientBrush.cs
- sqlser.cs
- SystemSounds.cs
- SiteMapNodeItem.cs
- RoleExceptions.cs
- PcmConverter.cs
- Geometry.cs
- CmsInterop.cs
- ControlBuilder.cs
- HtmlTitle.cs
- CommandPlan.cs
- TemplateControlCodeDomTreeGenerator.cs
- HwndStylusInputProvider.cs
- RowUpdatedEventArgs.cs
- Process.cs
- RecordBuilder.cs
- MissingManifestResourceException.cs