Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Diagnostics / PerformanceCounterScope.cs / 1 / PerformanceCounterScope.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------------- namespace System.ServiceModel.Diagnostics { using System.ComponentModel; public enum PerformanceCounterScope { Off = 0, // + ServiceOnly = 1, All = 2, Default = 3, // * } static class PerformanceCounterScopeHelper { internal static bool IsDefined(PerformanceCounterScope value) { return value == PerformanceCounterScope.Off || value == PerformanceCounterScope.Default || value == PerformanceCounterScope.ServiceOnly || value == PerformanceCounterScope.All; } public static void Validate(PerformanceCounterScope value) { if (!IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(PerformanceCounterScope))); } } } } // 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
- PrintDialogException.cs
- PointAnimationUsingPath.cs
- RandomNumberGenerator.cs
- WindowAutomationPeer.cs
- InputLanguageSource.cs
- AnonymousIdentificationSection.cs
- MetaData.cs
- SkinBuilder.cs
- ComponentCodeDomSerializer.cs
- OLEDB_Enum.cs
- ConvertersCollection.cs
- ConfigurationManagerInternalFactory.cs
- HandlerBase.cs
- ActiveDocumentEvent.cs
- SatelliteContractVersionAttribute.cs
- RbTree.cs
- ConditionCollection.cs
- InkCanvasFeedbackAdorner.cs
- FamilyMapCollection.cs
- CodeAttributeDeclaration.cs
- OrderedDictionaryStateHelper.cs
- WebBrowser.cs
- PageCatalogPart.cs
- Application.cs
- TrackingExtract.cs
- WinCategoryAttribute.cs
- PresentationTraceSources.cs
- TaskFileService.cs
- BamlRecordHelper.cs
- VideoDrawing.cs
- StretchValidation.cs
- MonthCalendar.cs
- PresentationAppDomainManager.cs
- SrgsGrammar.cs
- ScrollChrome.cs
- XamlFxTrace.cs
- ObjectItemCachedAssemblyLoader.cs
- NonSerializedAttribute.cs
- PowerModeChangedEventArgs.cs
- MapPathBasedVirtualPathProvider.cs
- SiteMembershipCondition.cs
- MonitoringDescriptionAttribute.cs
- PropertyIDSet.cs
- mil_commands.cs
- ReflectionHelper.cs
- DesignColumn.cs
- PrintDialogException.cs
- IgnoreDataMemberAttribute.cs
- SafeNativeMethodsCLR.cs
- LingerOption.cs
- XmlComplianceUtil.cs
- QilPatternFactory.cs
- SynchronizedPool.cs
- Wizard.cs
- CaseInsensitiveComparer.cs
- CompiledIdentityConstraint.cs
- DeflateStreamAsyncResult.cs
- PolicyLevel.cs
- HtmlInputText.cs
- ParentQuery.cs
- FlagPanel.cs
- StylusDevice.cs
- XmlAnyAttributeAttribute.cs
- SmtpNetworkElement.cs
- WrappedKeySecurityToken.cs
- PeerIPHelper.cs
- EncodingInfo.cs
- ResourceFallbackManager.cs
- MetadataExchangeClient.cs
- ApplicationProxyInternal.cs
- SingleAnimationUsingKeyFrames.cs
- ObjectDataSourceEventArgs.cs
- CustomErrorsSection.cs
- GridSplitter.cs
- LayoutTable.cs
- XmlStringTable.cs
- ListSortDescription.cs
- EnumCodeDomSerializer.cs
- NativeMethodsOther.cs
- recordstatescratchpad.cs
- SByte.cs
- GeneralTransform2DTo3D.cs
- Visual3DCollection.cs
- FtpWebResponse.cs
- WebPartVerbsEventArgs.cs
- ExtenderProvidedPropertyAttribute.cs
- GeneralTransform.cs
- EmptyArray.cs
- ColorMatrix.cs
- MLangCodePageEncoding.cs
- RepeatButtonAutomationPeer.cs
- CodeDirectiveCollection.cs
- MarkupCompilePass1.cs
- TextEndOfParagraph.cs
- ImageFormatConverter.cs
- XmlStringTable.cs
- XmlResolver.cs
- WmlLinkAdapter.cs
- DrawTreeNodeEventArgs.cs
- RequestTimeoutManager.cs