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
- XmlDataSource.cs
- SendMailErrorEventArgs.cs
- CfgRule.cs
- XPathSingletonIterator.cs
- formatstringdialog.cs
- BuilderPropertyEntry.cs
- UInt32Storage.cs
- PeerToPeerException.cs
- DataFormats.cs
- SecurityRequiresReviewAttribute.cs
- XamlPointCollectionSerializer.cs
- ITextView.cs
- SystemIPv6InterfaceProperties.cs
- MouseEvent.cs
- WmlCommandAdapter.cs
- LineSegment.cs
- PathStreamGeometryContext.cs
- ByteKeyFrameCollection.cs
- SimpleWorkerRequest.cs
- TableLayoutPanel.cs
- sqlpipe.cs
- _AcceptOverlappedAsyncResult.cs
- BrowserCapabilitiesCodeGenerator.cs
- NavigationPropertyAccessor.cs
- DbException.cs
- DetailsViewDeletedEventArgs.cs
- _BasicClient.cs
- SqlDesignerDataSourceView.cs
- FilteredDataSetHelper.cs
- WindowsTitleBar.cs
- GridView.cs
- SpanIndex.cs
- WebUtil.cs
- AuthenticatingEventArgs.cs
- XmlWriterSettings.cs
- OleDbFactory.cs
- MachineSettingsSection.cs
- ConfigurationHandlersInstallComponent.cs
- EFColumnProvider.cs
- AddIn.cs
- TextEndOfSegment.cs
- OLEDB_Util.cs
- UnsafeMethods.cs
- ResolveResponse.cs
- PenContexts.cs
- TagPrefixAttribute.cs
- BuildProvider.cs
- ImageResources.Designer.cs
- SQLResource.cs
- XmlUtf8RawTextWriter.cs
- QuotedStringWriteStateInfo.cs
- ListBoxChrome.cs
- DataGridViewComboBoxCell.cs
- SessionStateSection.cs
- D3DImage.cs
- RtfToXamlReader.cs
- NegotiateStream.cs
- TimelineCollection.cs
- VBCodeProvider.cs
- FontStretchConverter.cs
- DispatchChannelSink.cs
- ObjectManager.cs
- FileSystemEventArgs.cs
- webproxy.cs
- TrackingMemoryStreamFactory.cs
- JsonStringDataContract.cs
- Equal.cs
- UnsafeCollabNativeMethods.cs
- LabelLiteral.cs
- DependencyProperty.cs
- ColorInterpolationModeValidation.cs
- ClientRuntimeConfig.cs
- OutOfProcStateClientManager.cs
- DBParameter.cs
- DBPropSet.cs
- WebEventCodes.cs
- MediaContext.cs
- GridProviderWrapper.cs
- BamlCollectionHolder.cs
- SocketCache.cs
- UnicastIPAddressInformationCollection.cs
- SamlAction.cs
- WebUtil.cs
- ServiceOperationInfoTypeConverter.cs
- Size.cs
- RepeatButtonAutomationPeer.cs
- EventLogException.cs
- WizardStepBase.cs
- RoutedEvent.cs
- PathHelper.cs
- BulletedList.cs
- ReflectionPermission.cs
- OneOfScalarConst.cs
- HtmlShimManager.cs
- SelectionItemPattern.cs
- columnmapkeybuilder.cs
- DTCTransactionManager.cs
- DeferredSelectedIndexReference.cs
- Lock.cs
- NumericUpDownAccelerationCollection.cs