Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / AuditLogLocation.cs / 1 / AuditLogLocation.cs
//---------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { using System.ServiceModel.Security; using System.ComponentModel; public enum AuditLogLocation { Default, Application, Security, } static class AuditLogLocationHelper { public static bool IsDefined(AuditLogLocation auditLogLocation) { if (auditLogLocation == AuditLogLocation.Security && !SecurityAuditHelper.IsSecurityAuditSupported) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new PlatformNotSupportedException(SR.GetString(SR.SecurityAuditPlatformNotSupported))); return auditLogLocation == AuditLogLocation.Default || auditLogLocation == AuditLogLocation.Application || auditLogLocation == AuditLogLocation.Security; } public static void Validate(AuditLogLocation value) { if (!IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(AuditLogLocation))); } } } } // 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
- BrowserCapabilitiesFactory.cs
- DisplayNameAttribute.cs
- DbProviderManifest.cs
- BuildProviderAppliesToAttribute.cs
- DataControlLinkButton.cs
- RelationshipNavigation.cs
- InternalTypeHelper.cs
- EventRouteFactory.cs
- NameObjectCollectionBase.cs
- WebAdminConfigurationHelper.cs
- QueueProcessor.cs
- DeviceFiltersSection.cs
- ControlType.cs
- RolePrincipal.cs
- FeatureAttribute.cs
- _Events.cs
- MetadataUtilsSmi.cs
- Stylesheet.cs
- QilUnary.cs
- PackageProperties.cs
- AdCreatedEventArgs.cs
- ValidatorCollection.cs
- XmlNodeChangedEventManager.cs
- InstalledFontCollection.cs
- _UriTypeConverter.cs
- TextPattern.cs
- __Error.cs
- OdbcDataReader.cs
- ImmutableObjectAttribute.cs
- GenericIdentity.cs
- XmlValidatingReaderImpl.cs
- designeractionlistschangedeventargs.cs
- IisTraceListener.cs
- ReceiveSecurityHeaderElementManager.cs
- KnownAssemblyEntry.cs
- UnsafeNativeMethods.cs
- QueryReaderSettings.cs
- RectangleConverter.cs
- _NetworkingPerfCounters.cs
- Exceptions.cs
- CancelRequestedRecord.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- SQLDecimal.cs
- HtmlTable.cs
- DragEvent.cs
- TemplateField.cs
- FileAccessException.cs
- RoleBoolean.cs
- ListCollectionView.cs
- DiscoveryClientProtocol.cs
- VisualStyleElement.cs
- RelationshipNavigation.cs
- WebColorConverter.cs
- WebPartHelpVerb.cs
- TypeHelper.cs
- PathStreamGeometryContext.cs
- ConstNode.cs
- PointConverter.cs
- ListManagerBindingsCollection.cs
- SqlConnectionStringBuilder.cs
- XMLSyntaxException.cs
- ContentTextAutomationPeer.cs
- Margins.cs
- LogWriteRestartAreaState.cs
- AppliesToBehaviorDecisionTable.cs
- DataGridViewTopLeftHeaderCell.cs
- DiagnosticsElement.cs
- FlowLayoutSettings.cs
- BindingsCollection.cs
- XPathScanner.cs
- MasterPageCodeDomTreeGenerator.cs
- PersonalizationProviderCollection.cs
- DrawingContext.cs
- SoapObjectReader.cs
- ClonableStack.cs
- RolePrincipal.cs
- TextSelection.cs
- XpsImageSerializationService.cs
- DataRowView.cs
- ContextMenu.cs
- LoginUtil.cs
- PinnedBufferMemoryStream.cs
- listitem.cs
- MethodCallConverter.cs
- XmlAnyAttributeAttribute.cs
- typedescriptorpermission.cs
- IERequestCache.cs
- Composition.cs
- TraceHandlerErrorFormatter.cs
- PropertyMapper.cs
- ToolStripArrowRenderEventArgs.cs
- WebConvert.cs
- PlacementWorkspace.cs
- TraceSource.cs
- GridSplitterAutomationPeer.cs
- MatchAllMessageFilter.cs
- OverflowException.cs
- SyntaxCheck.cs
- OutputCacheProfileCollection.cs
- DataControlFieldCollection.cs