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
- RelOps.cs
- UInt32Storage.cs
- TextSpan.cs
- ApplicationServiceManager.cs
- RemotingAttributes.cs
- StandardBindingOptionalReliableSessionElement.cs
- BindToObject.cs
- MemberCollection.cs
- IdentityReference.cs
- _emptywebproxy.cs
- XmlAttributeOverrides.cs
- Queue.cs
- FullTrustAssembly.cs
- ResourceCodeDomSerializer.cs
- ToggleButtonAutomationPeer.cs
- AsyncOperation.cs
- DataGrid.cs
- LeafCellTreeNode.cs
- HtmlShimManager.cs
- DiscoveryInnerClientAdhocCD1.cs
- SchemaCompiler.cs
- DecimalAnimationBase.cs
- CornerRadiusConverter.cs
- Control.cs
- ExpandCollapsePattern.cs
- XmlArrayAttribute.cs
- GeometryDrawing.cs
- FaultFormatter.cs
- SystemWebSectionGroup.cs
- RowTypePropertyElement.cs
- TcpConnectionPool.cs
- NativeCppClassAttribute.cs
- Triangle.cs
- WebBrowserSiteBase.cs
- ContextMenuService.cs
- ConfigurationValues.cs
- DrawToolTipEventArgs.cs
- Rect3D.cs
- ExpressionStringBuilder.cs
- TextParagraph.cs
- StorageInfo.cs
- AppDomainFactory.cs
- FixedDocumentSequencePaginator.cs
- UserMapPath.cs
- OutputBuffer.cs
- BatchStream.cs
- EpmContentDeSerializerBase.cs
- _ConnectStream.cs
- CompModSwitches.cs
- BinaryUtilClasses.cs
- CacheDependency.cs
- UserUseLicenseDictionaryLoader.cs
- SafeViewOfFileHandle.cs
- DecimalAnimationUsingKeyFrames.cs
- webeventbuffer.cs
- GroupQuery.cs
- Freezable.cs
- WorkflowApplicationCompletedEventArgs.cs
- UnknownWrapper.cs
- FontNameConverter.cs
- pingexception.cs
- DBSchemaTable.cs
- DesignerListAdapter.cs
- XmlNode.cs
- SqlEnums.cs
- XamlPointCollectionSerializer.cs
- DataGridViewRowsAddedEventArgs.cs
- TextDpi.cs
- RegexGroupCollection.cs
- DesignerDataSchemaClass.cs
- Parser.cs
- DataGridViewCellCollection.cs
- SetterBaseCollection.cs
- MappingModelBuildProvider.cs
- PasswordRecovery.cs
- DocumentDesigner.cs
- ScaleTransform3D.cs
- SqlDataRecord.cs
- ResourceAttributes.cs
- InvalidWMPVersionException.cs
- NativeConfigurationLoader.cs
- OutputCacheProfile.cs
- ToolStripItemRenderEventArgs.cs
- ResourceDictionary.cs
- PathData.cs
- DataGridRelationshipRow.cs
- ObjectItemAssemblyLoader.cs
- DataControlFieldCollection.cs
- HttpModuleAction.cs
- View.cs
- Visual3D.cs
- ObjRef.cs
- Geometry3D.cs
- DataGridViewRowsAddedEventArgs.cs
- TogglePattern.cs
- EncoderNLS.cs
- X509ThumbprintKeyIdentifierClause.cs
- RemotingConfigParser.cs
- DataGridSortingEventArgs.cs
- MembershipUser.cs