Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / MsmqEncryptionAlgorithm.cs / 1 / MsmqEncryptionAlgorithm.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { using System.ServiceModel.Channels; public enum MsmqEncryptionAlgorithm { RC4Stream, Aes } static class MsmqEncryptionAlgorithmHelper { public static bool IsDefined(MsmqEncryptionAlgorithm algorithm) { return algorithm == MsmqEncryptionAlgorithm.RC4Stream || algorithm == MsmqEncryptionAlgorithm.Aes; } public static int ToInt32(MsmqEncryptionAlgorithm algorithm) { switch (algorithm) { case MsmqEncryptionAlgorithm.RC4Stream: return UnsafeNativeMethods.CALG_RC4; case MsmqEncryptionAlgorithm.Aes: return UnsafeNativeMethods.CALG_AES; default: return -1; } } } } // 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
- WsatEtwTraceListener.cs
- Model3DGroup.cs
- SqlPersonalizationProvider.cs
- HttpListenerContext.cs
- Task.cs
- Material.cs
- KnownTypesProvider.cs
- PriorityItem.cs
- ListInitExpression.cs
- AnimationLayer.cs
- TraceLevelStore.cs
- Converter.cs
- SwitchElementsCollection.cs
- IPAddress.cs
- FtpRequestCacheValidator.cs
- RequestResizeEvent.cs
- x509store.cs
- RegionIterator.cs
- DmlSqlGenerator.cs
- XmlIterators.cs
- DiagnosticTraceSource.cs
- EdgeModeValidation.cs
- TextChange.cs
- _LocalDataStoreMgr.cs
- RequestBringIntoViewEventArgs.cs
- SignatureTargetIdManager.cs
- AssemblySettingAttributes.cs
- DispatcherObject.cs
- MarshalByRefObject.cs
- DrawListViewColumnHeaderEventArgs.cs
- DrawingBrush.cs
- DesignRelationCollection.cs
- StickyNoteAnnotations.cs
- XmlEventCache.cs
- SingleTagSectionHandler.cs
- FeatureAttribute.cs
- PrintEvent.cs
- InkPresenterAutomationPeer.cs
- ListenerElementsCollection.cs
- XmlQueryCardinality.cs
- BindingExpressionUncommonField.cs
- ElementsClipboardData.cs
- objectresult_tresulttype.cs
- CommandHelper.cs
- HttpCapabilitiesSectionHandler.cs
- BoundField.cs
- Visual.cs
- DictionaryEntry.cs
- WinCategoryAttribute.cs
- HwndSource.cs
- ResourceType.cs
- XmlAnyAttributeAttribute.cs
- ApplicationCommands.cs
- Win32Exception.cs
- DataBoundControlAdapter.cs
- ColorAnimationBase.cs
- COMException.cs
- OperatingSystem.cs
- BrowserTree.cs
- WindowsFormsLinkLabel.cs
- VirtualizingStackPanel.cs
- GridViewDeletedEventArgs.cs
- DispatcherObject.cs
- StringValidatorAttribute.cs
- ServiceNameElement.cs
- HtmlInputControl.cs
- odbcmetadatafactory.cs
- ToolStripManager.cs
- GridViewUpdateEventArgs.cs
- MultiSelector.cs
- TabPanel.cs
- CompilerGlobalScopeAttribute.cs
- EventEntry.cs
- FlowDocument.cs
- EnumValAlphaComparer.cs
- XmlElementList.cs
- StdRegProviderWrapper.cs
- MULTI_QI.cs
- CoTaskMemSafeHandle.cs
- EntityDataSourceChangedEventArgs.cs
- TextViewBase.cs
- UnknownWrapper.cs
- TabPanel.cs
- DataListItemCollection.cs
- MimeObjectFactory.cs
- XmlQueryContext.cs
- OutputCacheSettingsSection.cs
- OdbcErrorCollection.cs
- unitconverter.cs
- CapabilitiesPattern.cs
- DigitShape.cs
- WeakReferenceList.cs
- CommandHelper.cs
- HelpPage.cs
- StrongNameUtility.cs
- HebrewCalendar.cs
- KeyGesture.cs
- Maps.cs
- ProviderCollection.cs
- DependentTransaction.cs