Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / MsmqSecureHashAlgorithm.cs / 1 / MsmqSecureHashAlgorithm.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { using System.ServiceModel.Channels; public enum MsmqSecureHashAlgorithm { MD5, Sha1, Sha256, Sha512 } static class MsmqSecureHashAlgorithmHelper { public static bool IsDefined(MsmqSecureHashAlgorithm algorithm) { return algorithm == MsmqSecureHashAlgorithm.MD5 || algorithm == MsmqSecureHashAlgorithm.Sha1 || algorithm == MsmqSecureHashAlgorithm.Sha256 || algorithm == MsmqSecureHashAlgorithm.Sha512; } public static int ToInt32(MsmqSecureHashAlgorithm algorithm) { switch (algorithm) { case MsmqSecureHashAlgorithm.MD5: return UnsafeNativeMethods.CALG_MD5; case MsmqSecureHashAlgorithm.Sha1: return UnsafeNativeMethods.CALG_SHA1; case MsmqSecureHashAlgorithm.Sha256: return UnsafeNativeMethods.CALG_SHA_256; case MsmqSecureHashAlgorithm.Sha512: return UnsafeNativeMethods.CALG_SHA_512; 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
- ConnectorEditor.cs
- SafeProcessHandle.cs
- StateDesigner.cs
- SafeRegistryHandle.cs
- DBParameter.cs
- DataServiceCollectionOfT.cs
- ImageFormat.cs
- XmlIlGenerator.cs
- ArgumentValidation.cs
- PublisherIdentityPermission.cs
- SqlReorderer.cs
- WebHttpBinding.cs
- ShutDownListener.cs
- DataBoundControlDesigner.cs
- XmlUTF8TextWriter.cs
- ServerValidateEventArgs.cs
- PolyBezierSegment.cs
- OrderPreservingPipeliningSpoolingTask.cs
- TableItemPatternIdentifiers.cs
- VisualStyleInformation.cs
- VectorValueSerializer.cs
- StylusButtonEventArgs.cs
- AffineTransform3D.cs
- NetNamedPipeSecurityElement.cs
- DSASignatureDeformatter.cs
- SqlInternalConnectionTds.cs
- XmlReaderDelegator.cs
- CodeAttributeDeclaration.cs
- ModelFunctionTypeElement.cs
- AudioSignalProblemOccurredEventArgs.cs
- PersonalizationStateInfoCollection.cs
- ColumnMapVisitor.cs
- RequestUriProcessor.cs
- ServiceContractListItem.cs
- ComplexTypeEmitter.cs
- XmlReader.cs
- _Events.cs
- login.cs
- BitmapCacheBrush.cs
- MaskedTextBox.cs
- TabPanel.cs
- MatrixStack.cs
- SqlDataSourceView.cs
- PropertyFilterAttribute.cs
- DesignTimeParseData.cs
- HyperLinkField.cs
- FieldAccessException.cs
- CodeMethodMap.cs
- OracleBinary.cs
- BinaryParser.cs
- OleTxTransaction.cs
- ByeMessageApril2005.cs
- SiteOfOriginContainer.cs
- BitmapFrame.cs
- Guid.cs
- MultipartContentParser.cs
- NullToBooleanConverter.cs
- SecuritySessionClientSettings.cs
- CompleteWizardStep.cs
- TreeNodeEventArgs.cs
- FileSystemEnumerable.cs
- WebDescriptionAttribute.cs
- DataPager.cs
- Ipv6Element.cs
- CornerRadiusConverter.cs
- ObservableDictionary.cs
- MethodRental.cs
- DefaultMemberAttribute.cs
- CreateRefExpr.cs
- NavigationHelper.cs
- DrawItemEvent.cs
- ScriptReferenceBase.cs
- DocComment.cs
- TdsParserStaticMethods.cs
- X509Certificate.cs
- Trace.cs
- XamlRtfConverter.cs
- UseManagedPresentationBindingElementImporter.cs
- AdCreatedEventArgs.cs
- EntityDataSourceContextDisposingEventArgs.cs
- ThrowHelper.cs
- serverconfig.cs
- ProfileGroupSettingsCollection.cs
- ObjectPersistData.cs
- RotationValidation.cs
- LineSegment.cs
- AstNode.cs
- TimeoutException.cs
- SerialReceived.cs
- DispatcherEventArgs.cs
- PrimitiveType.cs
- UrlAuthFailedErrorFormatter.cs
- _SafeNetHandles.cs
- UnionExpr.cs
- StylusEditingBehavior.cs
- Figure.cs
- CommandID.cs
- IApplicationTrustManager.cs
- WebPartDescriptionCollection.cs
- MaskedTextBoxTextEditor.cs