Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / AuditLevel.cs / 1 / AuditLevel.cs
//---------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { using System.ComponentModel; public enum AuditLevel { None = 0, Success = 0x1, Failure = 0x2, SuccessOrFailure = Success | Failure, } static class AuditLevelHelper { public static bool IsDefined(AuditLevel auditLevel) { return auditLevel == AuditLevel.None || auditLevel == AuditLevel.Success || auditLevel == AuditLevel.Failure || auditLevel == AuditLevel.SuccessOrFailure; } public static void Validate(AuditLevel value) { if (!IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(AuditLevel))); } } } } // 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
- MatrixAnimationUsingPath.cs
- SQLBinaryStorage.cs
- SessionConnectionReader.cs
- AnnouncementInnerClient11.cs
- XslCompiledTransform.cs
- X509CertificateClaimSet.cs
- PageWrapper.cs
- BamlRecordReader.cs
- XmlEntityReference.cs
- QilNode.cs
- ColorBlend.cs
- XamlGridLengthSerializer.cs
- BackgroundFormatInfo.cs
- StrokeNodeOperations2.cs
- Zone.cs
- StaticFileHandler.cs
- AttributeExtensions.cs
- LightweightCodeGenerator.cs
- ExpressionParser.cs
- DataSourceGeneratorException.cs
- XmlReader.cs
- XmlAnyAttributeAttribute.cs
- HostingEnvironmentWrapper.cs
- CodeRemoveEventStatement.cs
- TableLayoutRowStyleCollection.cs
- arclist.cs
- InternalConfigConfigurationFactory.cs
- EffectiveValueEntry.cs
- ObjectCloneHelper.cs
- RankException.cs
- EntityDesignerBuildProvider.cs
- FileUtil.cs
- XmlWrappingWriter.cs
- FtpWebResponse.cs
- ToolBarPanel.cs
- RowType.cs
- CFGGrammar.cs
- SQLConvert.cs
- CallTemplateAction.cs
- FrameworkContentElementAutomationPeer.cs
- XmlText.cs
- LockRecursionException.cs
- DateTimeFormatInfoScanner.cs
- WindowsGrip.cs
- PropertyEmitter.cs
- SynchronizingStream.cs
- HtmlInputFile.cs
- ThrowOnMultipleAssignment.cs
- XPathItem.cs
- CqlWriter.cs
- StrokeNodeOperations.cs
- WindowsListViewItemStartMenu.cs
- SQLBoolean.cs
- RequestCachingSection.cs
- XPathPatternParser.cs
- ComponentResourceKey.cs
- TextEndOfSegment.cs
- CancellationToken.cs
- DefinitionBase.cs
- ChannelManager.cs
- DesignerInterfaces.cs
- PagerSettings.cs
- ModulesEntry.cs
- HttpWriter.cs
- MSG.cs
- Pointer.cs
- LinqDataSourceInsertEventArgs.cs
- ValueUtilsSmi.cs
- SchemaTableColumn.cs
- AsymmetricSignatureFormatter.cs
- URLString.cs
- EastAsianLunisolarCalendar.cs
- Label.cs
- HintTextMaxWidthConverter.cs
- ToolStripControlHost.cs
- DrawingBrush.cs
- SpStreamWrapper.cs
- ListViewAutomationPeer.cs
- SpellCheck.cs
- TextProviderWrapper.cs
- ExtensionDataObject.cs
- dtdvalidator.cs
- OlePropertyStructs.cs
- RefreshEventArgs.cs
- DataContractSet.cs
- GifBitmapDecoder.cs
- DataConnectionHelper.cs
- PeerNeighborManager.cs
- PolicyManager.cs
- ResourceDescriptionAttribute.cs
- RightsManagementPermission.cs
- SchemaConstraints.cs
- DrawItemEvent.cs
- AutoSizeComboBox.cs
- XmlAggregates.cs
- OptimizerPatterns.cs
- SchemaManager.cs
- XmlSchemaGroupRef.cs
- ResolveResponse.cs
- TCPListener.cs