Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / SecurityHeaderLayout.cs / 1 / SecurityHeaderLayout.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Channels
{
using System.ComponentModel;
public enum SecurityHeaderLayout
{
Strict = 0,
Lax = 1,
LaxTimestampFirst = 2,
LaxTimestampLast = 3
}
static class SecurityHeaderLayoutHelper
{
public static bool IsDefined(SecurityHeaderLayout value)
{
return (value == SecurityHeaderLayout.Lax
|| value == SecurityHeaderLayout.LaxTimestampFirst
|| value == SecurityHeaderLayout.LaxTimestampLast
|| value == SecurityHeaderLayout.Strict);
}
public static void Validate(SecurityHeaderLayout value)
{
if (!IsDefined(value))
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
typeof(SecurityHeaderLayout)));
}
}
}
}
// 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
- DataGridViewColumnCollection.cs
- XmlReflectionImporter.cs
- LinqDataSourceContextEventArgs.cs
- Int64Converter.cs
- SelectionPattern.cs
- CssStyleCollection.cs
- OutOfMemoryException.cs
- CreateParams.cs
- StandardToolWindows.cs
- TableLayoutPanelCellPosition.cs
- TextTreeText.cs
- ContainerControl.cs
- DataGridViewCellPaintingEventArgs.cs
- Matrix.cs
- RTLAwareMessageBox.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- Renderer.cs
- ConfigDefinitionUpdates.cs
- ZipIOLocalFileHeader.cs
- ObjectStateFormatter.cs
- FileInfo.cs
- Stream.cs
- XamlStream.cs
- WebPartManagerDesigner.cs
- TextRangeEditTables.cs
- UDPClient.cs
- DataGridRowHeader.cs
- OdbcConnectionFactory.cs
- DetailsViewInsertedEventArgs.cs
- Tokenizer.cs
- ConfigXmlWhitespace.cs
- DeclaredTypeValidatorAttribute.cs
- HtmlInputControl.cs
- KeyboardDevice.cs
- MemberRelationshipService.cs
- WebSysDescriptionAttribute.cs
- SimpleTypeResolver.cs
- CharUnicodeInfo.cs
- ArcSegment.cs
- BaseTypeViewSchema.cs
- MailBnfHelper.cs
- DirectoryObjectSecurity.cs
- TextServicesCompartmentContext.cs
- QilCloneVisitor.cs
- PropertyDescriptorCollection.cs
- HwndSource.cs
- XmlSchemaSet.cs
- ViewEvent.cs
- BidPrivateBase.cs
- MatrixConverter.cs
- QueuePathDialog.cs
- ListBoxItemWrapperAutomationPeer.cs
- PrePrepareMethodAttribute.cs
- TextBlockAutomationPeer.cs
- ToolStripSystemRenderer.cs
- DocumentPageView.cs
- ByteStack.cs
- BatchServiceHost.cs
- FontConverter.cs
- ThreadStateException.cs
- AutoResetEvent.cs
- TextContainerChangedEventArgs.cs
- ToolStripDropDownClosingEventArgs.cs
- ResourceProperty.cs
- PolicyVersion.cs
- InternalDispatchObject.cs
- Polyline.cs
- UnionExpr.cs
- DeclarativeCatalogPart.cs
- ConfigurationErrorsException.cs
- CompositionTarget.cs
- DSASignatureFormatter.cs
- PackWebRequestFactory.cs
- SessionIDManager.cs
- OleAutBinder.cs
- SoapEnvelopeProcessingElement.cs
- ChtmlTextBoxAdapter.cs
- WindowsIdentity.cs
- FreezableDefaultValueFactory.cs
- ConfigXmlDocument.cs
- DataGridViewCellParsingEventArgs.cs
- DataRelationPropertyDescriptor.cs
- CertificateReferenceElement.cs
- SqlProviderUtilities.cs
- AsyncOperationManager.cs
- Durable.cs
- ActiveDocumentEvent.cs
- DoubleLinkList.cs
- FileIOPermission.cs
- GlyphingCache.cs
- ResourceManager.cs
- RichTextBoxDesigner.cs
- BrowserTree.cs
- XmlDataSourceDesigner.cs
- RenderTargetBitmap.cs
- ColumnMapProcessor.cs
- _UriSyntax.cs
- SqlDataSourceEnumerator.cs
- OracleDateTime.cs
- EntityDataSourceEntityTypeFilterItem.cs