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
- AmbientLight.cs
- _AutoWebProxyScriptWrapper.cs
- UrlPath.cs
- SchemaEntity.cs
- FrameSecurityDescriptor.cs
- ChineseLunisolarCalendar.cs
- TransformerTypeCollection.cs
- BitmapCacheBrush.cs
- _RegBlobWebProxyDataBuilder.cs
- InvalidDataException.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- MailMessageEventArgs.cs
- Light.cs
- WebColorConverter.cs
- GridViewUpdateEventArgs.cs
- EntityDataSourceMemberPath.cs
- ProcessInputEventArgs.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- WmfPlaceableFileHeader.cs
- OverflowException.cs
- Color.cs
- CodeDomSerializer.cs
- NavigatorInput.cs
- WindowsGraphicsCacheManager.cs
- HyperLinkField.cs
- Point4D.cs
- NetworkCredential.cs
- InvalidEnumArgumentException.cs
- ValidationRuleCollection.cs
- HttpRequestWrapper.cs
- SettingsContext.cs
- Dump.cs
- Viewport2DVisual3D.cs
- FixedElement.cs
- ThicknessKeyFrameCollection.cs
- SQLString.cs
- SqlDataSourceCustomCommandPanel.cs
- SafeRightsManagementHandle.cs
- TableProviderWrapper.cs
- MailWriter.cs
- MetadataArtifactLoader.cs
- PersonalizationState.cs
- SQLGuidStorage.cs
- CookieHandler.cs
- SqlFunctions.cs
- XmlWrappingReader.cs
- CompareValidator.cs
- DataPagerCommandEventArgs.cs
- SafePointer.cs
- XmlUtil.cs
- OutArgumentConverter.cs
- MetadataItemEmitter.cs
- EdmScalarPropertyAttribute.cs
- RawAppCommandInputReport.cs
- _IPv4Address.cs
- NavigationPropertySingletonExpression.cs
- ConfigurationElement.cs
- ImageIndexEditor.cs
- SchemaImporterExtensionsSection.cs
- GlobalDataBindingHandler.cs
- ThreadStartException.cs
- TextRenderer.cs
- EventOpcode.cs
- XmlTextEncoder.cs
- WebPartMinimizeVerb.cs
- HttpHostedTransportConfiguration.cs
- LinqDataSourceUpdateEventArgs.cs
- EventLogPermissionEntry.cs
- CodeDomLocalizationProvider.cs
- FormatControl.cs
- DocumentOrderComparer.cs
- WebAdminConfigurationHelper.cs
- RemotingSurrogateSelector.cs
- GlyphsSerializer.cs
- DataGridViewRowCancelEventArgs.cs
- CodeSnippetStatement.cs
- GeneratedCodeAttribute.cs
- ProgressBar.cs
- PageEventArgs.cs
- CheckedPointers.cs
- ConfigXmlElement.cs
- GlyphsSerializer.cs
- CloseCollectionAsyncResult.cs
- HtmlTableRowCollection.cs
- CacheMode.cs
- IdnElement.cs
- SafeFindHandle.cs
- DataSourceCacheDurationConverter.cs
- TaskFileService.cs
- CollectionDataContract.cs
- PerfService.cs
- IndexingContentUnit.cs
- DeferredTextReference.cs
- Attributes.cs
- VersionedStreamOwner.cs
- PageTheme.cs
- AppSettingsExpressionBuilder.cs
- SoapReflectionImporter.cs
- URIFormatException.cs
- DbConnectionPoolOptions.cs