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
- MultiAsyncResult.cs
- ComplexType.cs
- MD5HashHelper.cs
- BitmapMetadata.cs
- GlobalProxySelection.cs
- BookmarkResumptionRecord.cs
- TraceInternal.cs
- Help.cs
- LinqDataSourceView.cs
- HitTestParameters.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- SerializationEventsCache.cs
- CancellationTokenSource.cs
- UserPersonalizationStateInfo.cs
- ObjectSet.cs
- _TLSstream.cs
- SSmlParser.cs
- LineServicesCallbacks.cs
- infer.cs
- MDIClient.cs
- SecurityException.cs
- Expr.cs
- BamlTreeNode.cs
- UriParserTemplates.cs
- SspiHelper.cs
- IntegerValidatorAttribute.cs
- RowsCopiedEventArgs.cs
- ConnectionStringSettings.cs
- Rotation3D.cs
- CompareValidator.cs
- FixedBufferAttribute.cs
- EntitySqlException.cs
- WebControlAdapter.cs
- Propagator.Evaluator.cs
- HtmlTableRowCollection.cs
- KnownTypeAttribute.cs
- TransformValueSerializer.cs
- FormsAuthenticationEventArgs.cs
- StringInfo.cs
- OleDbDataAdapter.cs
- XmlSchemaAttributeGroup.cs
- DrawingContextWalker.cs
- DataGridViewRowConverter.cs
- DropDownList.cs
- TextServicesManager.cs
- PackageRelationshipSelector.cs
- Oid.cs
- ScrollBar.cs
- CategoryAttribute.cs
- PropertyInfoSet.cs
- TextEffect.cs
- RegexTypeEditor.cs
- CacheHelper.cs
- diagnosticsswitches.cs
- ParagraphResult.cs
- PackageDigitalSignatureManager.cs
- XPathEmptyIterator.cs
- SqlBulkCopy.cs
- BezierSegment.cs
- HttpListenerResponse.cs
- SHA256.cs
- TriggerAction.cs
- SqlMethods.cs
- ResourceDefaultValueAttribute.cs
- SystemTcpConnection.cs
- BooleanProjectedSlot.cs
- FormViewUpdateEventArgs.cs
- WindowsTab.cs
- MeshGeometry3D.cs
- Timer.cs
- ConnectionStringSettings.cs
- PerformanceCounterManager.cs
- BaseDataListComponentEditor.cs
- BaseCodePageEncoding.cs
- SettingsProperty.cs
- Scripts.cs
- OfTypeExpression.cs
- PerformanceCounterPermissionEntryCollection.cs
- RegexMatch.cs
- WebPartConnectVerb.cs
- DataServiceQueryContinuation.cs
- XpsFilter.cs
- TiffBitmapEncoder.cs
- MetabaseServerConfig.cs
- WizardForm.cs
- ToolStripItemRenderEventArgs.cs
- DataMemberListEditor.cs
- HostingEnvironment.cs
- EndpointAddressMessageFilterTable.cs
- TouchesOverProperty.cs
- ToolStripItemEventArgs.cs
- ReceiveContextCollection.cs
- LineSegment.cs
- AttachedPropertyBrowsableAttribute.cs
- LexicalChunk.cs
- TopClause.cs
- ScriptManager.cs
- RtfNavigator.cs
- ServiceModelConfigurationSectionGroup.cs
- Vector3DCollection.cs