Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / MessagePartProtectionMode.cs / 1 / MessagePartProtectionMode.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Security { enum MessagePartProtectionMode { None, Sign, Encrypt, SignThenEncrypt, EncryptThenSign, } static class MessagePartProtectionModeHelper { public static MessagePartProtectionMode GetProtectionMode(bool sign, bool encrypt, bool signThenEncrypt) { if (sign) { if (encrypt) { if (signThenEncrypt) { return MessagePartProtectionMode.SignThenEncrypt; } else { return MessagePartProtectionMode.EncryptThenSign; } } else { return MessagePartProtectionMode.Sign; } } else if (encrypt) { return MessagePartProtectionMode.Encrypt; } else { return MessagePartProtectionMode.None; } } } } // 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
- TextTreeNode.cs
- DeleteCardRequest.cs
- UIPermission.cs
- ServiceMoniker.cs
- followingquery.cs
- ZeroOpNode.cs
- ContainerParagraph.cs
- SourceInterpreter.cs
- DataSetSchema.cs
- Span.cs
- DocumentViewerAutomationPeer.cs
- DiffuseMaterial.cs
- Matrix.cs
- ToolStripPanelCell.cs
- TdsParser.cs
- MemberRelationshipService.cs
- CodeAccessPermission.cs
- ListViewInsertionMark.cs
- DefaultDiscoveryServiceExtension.cs
- ClientBuildManager.cs
- EncryptedKeyHashIdentifierClause.cs
- ReflectTypeDescriptionProvider.cs
- CallbackTimeoutsBehavior.cs
- SpeechUI.cs
- WS2007HttpBindingElement.cs
- TextBlock.cs
- Rect3DConverter.cs
- Panel.cs
- formatter.cs
- PropertyRef.cs
- DispatcherExceptionEventArgs.cs
- XPathNodeList.cs
- ExpressionConverter.cs
- DesignerLabelAdapter.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SingleTagSectionHandler.cs
- EventLogQuery.cs
- XmlIlTypeHelper.cs
- PackWebRequest.cs
- UdpSocketReceiveManager.cs
- XmlBaseReader.cs
- TabItem.cs
- UnhandledExceptionEventArgs.cs
- BaseDataListPage.cs
- XsdBuildProvider.cs
- ToRequest.cs
- TextContainerChangedEventArgs.cs
- Vector3D.cs
- AsymmetricSignatureDeformatter.cs
- AppSettingsReader.cs
- ShaderEffect.cs
- SerialErrors.cs
- GridItem.cs
- LongValidator.cs
- StronglyTypedResourceBuilder.cs
- HtmlToClrEventProxy.cs
- CachedPathData.cs
- HebrewCalendar.cs
- TargetConverter.cs
- XPathCompileException.cs
- JapaneseCalendar.cs
- Roles.cs
- HGlobalSafeHandle.cs
- RectAnimation.cs
- Evidence.cs
- ICspAsymmetricAlgorithm.cs
- KerberosSecurityTokenParameters.cs
- DataServiceProviderMethods.cs
- Int32CollectionConverter.cs
- ToolStripItemDesigner.cs
- MenuItemStyleCollection.cs
- DetailsViewRowCollection.cs
- Debug.cs
- HttpStreamMessage.cs
- BatchParser.cs
- PenContext.cs
- InvalidStoreProtectionKeyException.cs
- XmlSchemaValidator.cs
- SqlDuplicator.cs
- XmlAttributeOverrides.cs
- MetadataProperty.cs
- WorkItem.cs
- ThrowHelper.cs
- DrawingImage.cs
- XmlUtf8RawTextWriter.cs
- InfoCardAsymmetricCrypto.cs
- ImagingCache.cs
- LinkUtilities.cs
- IfJoinedCondition.cs
- SingleKeyFrameCollection.cs
- CapabilitiesAssignment.cs
- RestHandler.cs
- CompilerTypeWithParams.cs
- ObjectListItem.cs
- TypeValidationEventArgs.cs
- BamlVersionHeader.cs
- basecomparevalidator.cs
- LOSFormatter.cs
- TCEAdapterGenerator.cs
- ListView.cs