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
- FormViewPageEventArgs.cs
- Argument.cs
- InfocardInteractiveChannelInitializer.cs
- TypeToTreeConverter.cs
- StronglyTypedResourceBuilder.cs
- WebBrowserBase.cs
- AddInSegmentDirectoryNotFoundException.cs
- SnapshotChangeTrackingStrategy.cs
- NamespaceQuery.cs
- FilterElement.cs
- WindowsIdentity.cs
- QilReference.cs
- LinkedResourceCollection.cs
- List.cs
- SqlInfoMessageEvent.cs
- CacheDependency.cs
- NativeMethods.cs
- NoClickablePointException.cs
- FixedBufferAttribute.cs
- DPTypeDescriptorContext.cs
- XmlUrlResolver.cs
- DataGridViewCellMouseEventArgs.cs
- PlacementWorkspace.cs
- ClientSettings.cs
- Hash.cs
- ExtensibleClassFactory.cs
- WebPartAuthorizationEventArgs.cs
- _ServiceNameStore.cs
- ControlUtil.cs
- ExpressionBuilder.cs
- TokenBasedSet.cs
- InplaceBitmapMetadataWriter.cs
- RoleManagerModule.cs
- ColumnHeader.cs
- CachedPathData.cs
- Currency.cs
- BinaryConverter.cs
- BatchParser.cs
- X509Certificate2Collection.cs
- SweepDirectionValidation.cs
- future.cs
- WebPartZoneCollection.cs
- QuotedStringFormatReader.cs
- ClientTarget.cs
- AuthenticatingEventArgs.cs
- RightsManagementEncryptionTransform.cs
- AnnotationComponentManager.cs
- XmlDataSourceNodeDescriptor.cs
- OutputCacheProfileCollection.cs
- FunctionDefinition.cs
- OracleBinary.cs
- DataSourceCache.cs
- UInt16Converter.cs
- XmlBinaryReaderSession.cs
- ProfilePropertySettingsCollection.cs
- SelectedDatesCollection.cs
- ThicknessAnimation.cs
- StrongNamePublicKeyBlob.cs
- DataList.cs
- DataGridViewIntLinkedList.cs
- HwndMouseInputProvider.cs
- SectionInformation.cs
- DbParameterCollection.cs
- BaseDataBoundControlDesigner.cs
- CorrelationManager.cs
- MarshalDirectiveException.cs
- Listbox.cs
- DesignSurfaceManager.cs
- XamlSerializer.cs
- FileSecurity.cs
- DataColumnMappingCollection.cs
- MenuEventArgs.cs
- QilCloneVisitor.cs
- SocketManager.cs
- TemplateBaseAction.cs
- RepeaterItemCollection.cs
- KeyMatchBuilder.cs
- Message.cs
- PublisherMembershipCondition.cs
- BehaviorEditorPart.cs
- BasicViewGenerator.cs
- EditingScope.cs
- FastEncoder.cs
- DefaultWorkflowLoaderService.cs
- XmlSchemaSubstitutionGroup.cs
- RuntimeVariablesExpression.cs
- HostingEnvironmentWrapper.cs
- RunInstallerAttribute.cs
- documentsequencetextcontainer.cs
- GroupStyle.cs
- RpcCryptoContext.cs
- TextStore.cs
- SettingsContext.cs
- AsyncOperation.cs
- SecurityStandardsManager.cs
- SevenBitStream.cs
- ScriptControlDescriptor.cs
- ViewLoader.cs
- XmlSchemaInclude.cs
- DrawListViewSubItemEventArgs.cs