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
- ToolboxComponentsCreatedEventArgs.cs
- ipaddressinformationcollection.cs
- SmtpReplyReader.cs
- ImageConverter.cs
- Regex.cs
- ForwardPositionQuery.cs
- XmlComment.cs
- Rectangle.cs
- AbstractExpressions.cs
- login.cs
- WhitespaceSignificantCollectionAttribute.cs
- SharedUtils.cs
- VectorCollectionConverter.cs
- ApplicationException.cs
- FlowDocumentView.cs
- BitHelper.cs
- CacheMode.cs
- ProcessingInstructionAction.cs
- CallInfo.cs
- RijndaelCryptoServiceProvider.cs
- VectorConverter.cs
- RuntimeConfigurationRecord.cs
- Stroke.cs
- regiisutil.cs
- IdentitySection.cs
- BigInt.cs
- QuaternionValueSerializer.cs
- FamilyMap.cs
- MouseEvent.cs
- AdornedElementPlaceholder.cs
- EntitySqlQueryCacheEntry.cs
- ActivityCodeGenerator.cs
- UserPersonalizationStateInfo.cs
- InputLanguageManager.cs
- CircleHotSpot.cs
- ToolBar.cs
- PDBReader.cs
- NegatedConstant.cs
- SendMailErrorEventArgs.cs
- RequestResponse.cs
- DataGridViewButtonColumn.cs
- ApplicationManager.cs
- SplineKeyFrames.cs
- ResourceSetExpression.cs
- RangeEnumerable.cs
- ImageButton.cs
- SystemThemeKey.cs
- HwndMouseInputProvider.cs
- ColorTransformHelper.cs
- QueueProcessor.cs
- WebServicesSection.cs
- PropertyOverridesDialog.cs
- DbConnectionPool.cs
- ContentPropertyAttribute.cs
- DefaultAutoFieldGenerator.cs
- VSWCFServiceContractGenerator.cs
- UpdatePanelControlTrigger.cs
- ScrollableControl.cs
- DataTableMapping.cs
- DockAndAnchorLayout.cs
- ValueUnavailableException.cs
- StringHandle.cs
- IntSecurity.cs
- OleDbRowUpdatedEvent.cs
- ThreadPool.cs
- TrackingProfileDeserializationException.cs
- ControlPaint.cs
- SatelliteContractVersionAttribute.cs
- ContentFilePart.cs
- RijndaelManagedTransform.cs
- WSHttpBinding.cs
- AsynchronousChannel.cs
- Axis.cs
- SqlDataReader.cs
- Ipv6Element.cs
- PolyBezierSegmentFigureLogic.cs
- ApplicationSecurityManager.cs
- Border.cs
- MediaPlayer.cs
- TextRunCache.cs
- Geometry3D.cs
- ISAPIWorkerRequest.cs
- TextServicesProperty.cs
- TreeViewEvent.cs
- Padding.cs
- InputLanguageCollection.cs
- Label.cs
- ExpandSegmentCollection.cs
- CodeAccessPermission.cs
- VScrollProperties.cs
- GorillaCodec.cs
- ResourcePermissionBase.cs
- DynamicControl.cs
- __ComObject.cs
- ResourceDictionary.cs
- SystemIcons.cs
- InheritanceService.cs
- AmbientLight.cs
- MetadataStore.cs
- XXXOnTypeBuilderInstantiation.cs