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
- SqlUserDefinedAggregateAttribute.cs
- columnmapkeybuilder.cs
- CurrencyWrapper.cs
- BuildDependencySet.cs
- XPathParser.cs
- MachineKey.cs
- VisualStyleRenderer.cs
- xdrvalidator.cs
- TableStyle.cs
- HostedTransportConfigurationBase.cs
- Literal.cs
- ListViewInsertEventArgs.cs
- ToolStripRendererSwitcher.cs
- SimpleBitVector32.cs
- CollectionTypeElement.cs
- MissingMemberException.cs
- AppSecurityManager.cs
- ConfigurationSectionCollection.cs
- EventRouteFactory.cs
- TextEffectCollection.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- webclient.cs
- SmiSettersStream.cs
- PropagationProtocolsTracing.cs
- SecureStringHasher.cs
- DbQueryCommandTree.cs
- Focus.cs
- DetailsViewUpdatedEventArgs.cs
- DecimalMinMaxAggregationOperator.cs
- XdrBuilder.cs
- DataSvcMapFileSerializer.cs
- WsdlBuildProvider.cs
- Int64AnimationUsingKeyFrames.cs
- LongSumAggregationOperator.cs
- ApplicationServicesHostFactory.cs
- TimerElapsedEvenArgs.cs
- MethodImplAttribute.cs
- BamlWriter.cs
- ArraySortHelper.cs
- PolicyException.cs
- UnknownBitmapDecoder.cs
- ExpressionVisitorHelpers.cs
- ProtectedConfigurationSection.cs
- FormatException.cs
- Bitmap.cs
- UrlAuthFailureHandler.cs
- FormsAuthenticationModule.cs
- GreenMethods.cs
- SmtpNetworkElement.cs
- SQLResource.cs
- DeferredBinaryDeserializerExtension.cs
- DBAsyncResult.cs
- WCFBuildProvider.cs
- UnsafeNativeMethods.cs
- Translator.cs
- ServiceNameElement.cs
- XmlSchemaValidationException.cs
- AsymmetricSecurityProtocolFactory.cs
- XmlTextReaderImpl.cs
- ForAllOperator.cs
- PackageStore.cs
- SymbolMethod.cs
- StatusBar.cs
- UnmanagedMemoryStreamWrapper.cs
- DataGridViewRowStateChangedEventArgs.cs
- SqlVisitor.cs
- Comparer.cs
- FixedDocumentPaginator.cs
- NTAccount.cs
- ProfileServiceManager.cs
- DetailsViewModeEventArgs.cs
- SemanticResolver.cs
- XmlHierarchicalDataSourceView.cs
- DomainConstraint.cs
- EditingCoordinator.cs
- DebugHandleTracker.cs
- BinaryNode.cs
- MonikerUtility.cs
- mil_commands.cs
- ReversePositionQuery.cs
- BreakRecordTable.cs
- uribuilder.cs
- XmlHierarchicalDataSourceView.cs
- PersistChildrenAttribute.cs
- GlobalDataBindingHandler.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- XmlSignatureManifest.cs
- UnsafeNativeMethodsCLR.cs
- FormView.cs
- IdentityModelStringsVersion1.cs
- Vector3dCollection.cs
- PointLight.cs
- ImageInfo.cs
- FrameworkPropertyMetadata.cs
- WorkflowMessageEventArgs.cs
- GridViewHeaderRowPresenter.cs
- InvalidWMPVersionException.cs
- HttpCookiesSection.cs
- PerformanceCounters.cs
- WindowsPen.cs