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
- LinkedList.cs
- Pens.cs
- IsolatedStorageFile.cs
- ProtectedConfigurationSection.cs
- SystemResourceKey.cs
- DataGridViewButtonCell.cs
- SafeMILHandle.cs
- BindingNavigator.cs
- PermissionToken.cs
- SafeSystemMetrics.cs
- KeyGestureValueSerializer.cs
- PropertyDescriptorCollection.cs
- DataGridViewCheckBoxColumn.cs
- Perspective.cs
- DataServiceHost.cs
- ReadOnlyMetadataCollection.cs
- UnwrappedTypesXmlSerializerManager.cs
- MasterPage.cs
- ToolStrip.cs
- FactoryGenerator.cs
- AttachedPropertyBrowsableAttribute.cs
- DbDataSourceEnumerator.cs
- HyperlinkAutomationPeer.cs
- WebContext.cs
- XmlTextReaderImplHelpers.cs
- IsolatedStorageFile.cs
- UserControlParser.cs
- Table.cs
- ShaderRenderModeValidation.cs
- AxImporter.cs
- RotationValidation.cs
- EventLogPermission.cs
- XmlIgnoreAttribute.cs
- SocketAddress.cs
- SchemaMerger.cs
- DispatcherFrame.cs
- ToolStripArrowRenderEventArgs.cs
- ConfigXmlAttribute.cs
- PersonalizableTypeEntry.cs
- Keyboard.cs
- Polygon.cs
- ClockGroup.cs
- ParamArrayAttribute.cs
- SqlProcedureAttribute.cs
- AbsoluteQuery.cs
- XmlBaseWriter.cs
- IdentitySection.cs
- UnsafeNativeMethods.cs
- TrustLevelCollection.cs
- ResourceExpressionEditor.cs
- FormViewRow.cs
- ServicesSection.cs
- Zone.cs
- Menu.cs
- TextEditorTables.cs
- Effect.cs
- ConfigurationUtility.cs
- ReachDocumentReferenceSerializer.cs
- XmlValidatingReaderImpl.cs
- IERequestCache.cs
- XmlEventCache.cs
- RotationValidation.cs
- webeventbuffer.cs
- Stylesheet.cs
- ClientSettingsSection.cs
- TrackingAnnotationCollection.cs
- ScriptComponentDescriptor.cs
- ElementAction.cs
- HtmlInputSubmit.cs
- HtmlInputPassword.cs
- TraceHandlerErrorFormatter.cs
- Enum.cs
- DetailsViewDeleteEventArgs.cs
- DataRelationPropertyDescriptor.cs
- IncrementalCompileAnalyzer.cs
- PenThreadPool.cs
- PartialList.cs
- GestureRecognitionResult.cs
- WindowClosedEventArgs.cs
- ConfigXmlText.cs
- StandardToolWindows.cs
- PrintPreviewControl.cs
- CTreeGenerator.cs
- X509Certificate2.cs
- PageParser.cs
- Vector3DCollectionValueSerializer.cs
- HostingEnvironment.cs
- ListBase.cs
- FlowDocumentScrollViewer.cs
- StrokeCollectionConverter.cs
- RangeValuePattern.cs
- RelationshipEndCollection.cs
- MembershipValidatePasswordEventArgs.cs
- BevelBitmapEffect.cs
- IconHelper.cs
- CodeAccessPermission.cs
- COM2PropertyDescriptor.cs
- DuplicateWaitObjectException.cs
- TreeNodeStyle.cs
- DateTimeFormat.cs