Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / SecurityMode.cs / 1 / SecurityMode.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { public enum SecurityMode { None, Transport, Message, TransportWithMessageCredential } static class SecurityModeHelper { internal static bool IsDefined(SecurityMode value) { return (value == SecurityMode.None || value == SecurityMode.Transport || value == SecurityMode.Message || value == SecurityMode.TransportWithMessageCredential); } internal static SecurityMode ToSecurityMode(UnifiedSecurityMode value) { switch (value) { case UnifiedSecurityMode.None: return SecurityMode.None; case UnifiedSecurityMode.Transport: return SecurityMode.Transport; case UnifiedSecurityMode.Message: return SecurityMode.Message; case UnifiedSecurityMode.TransportWithMessageCredential: return SecurityMode.TransportWithMessageCredential; default: return (SecurityMode)value; } } } } // 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
- CreateUserWizardAutoFormat.cs
- SqlInfoMessageEvent.cs
- XmlSchemaSimpleTypeUnion.cs
- FormsAuthentication.cs
- cookieexception.cs
- ActiveXMessageFormatter.cs
- SelectionRange.cs
- SqlNodeAnnotation.cs
- EventData.cs
- OleDbReferenceCollection.cs
- DrawingContextWalker.cs
- Expressions.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ChangeTracker.cs
- SByte.cs
- QueryActivatableWorkflowsCommand.cs
- XPathSelfQuery.cs
- TextElementEnumerator.cs
- StructuredProperty.cs
- ScriptComponentDescriptor.cs
- SqlBooleanMismatchVisitor.cs
- PeerToPeerException.cs
- PassportIdentity.cs
- NodeInfo.cs
- grammarelement.cs
- DesignerDataView.cs
- HasCopySemanticsAttribute.cs
- GroupItem.cs
- MissingManifestResourceException.cs
- ObjectViewEntityCollectionData.cs
- ResourceExpressionBuilder.cs
- ZipIOExtraFieldZip64Element.cs
- DataGridTable.cs
- SqlBuffer.cs
- ImageInfo.cs
- CngProperty.cs
- CultureInfo.cs
- HttpResponseInternalWrapper.cs
- AllMembershipCondition.cs
- GeometryCollection.cs
- FileDialogCustomPlace.cs
- PointLight.cs
- HttpConfigurationContext.cs
- ChangePassword.cs
- VerificationAttribute.cs
- CngAlgorithm.cs
- MdiWindowListItemConverter.cs
- NamespaceTable.cs
- StreamAsIStream.cs
- WinInetCache.cs
- XsltOutput.cs
- TypefaceMap.cs
- XomlDesignerLoader.cs
- MappingMetadataHelper.cs
- Type.cs
- SmiRecordBuffer.cs
- LogLogRecordHeader.cs
- EditingScope.cs
- DirectoryInfo.cs
- ChildrenQuery.cs
- Literal.cs
- ConnectionInterfaceCollection.cs
- GraphicsState.cs
- DataServices.cs
- AttributeEmitter.cs
- JsonWriter.cs
- MethodToken.cs
- _emptywebproxy.cs
- ConfigurationSection.cs
- FigureHelper.cs
- DataGridViewCellParsingEventArgs.cs
- AssemblyUtil.cs
- RadioButtonBaseAdapter.cs
- UnmanagedHandle.cs
- PagerSettings.cs
- SQLGuidStorage.cs
- TransformerInfo.cs
- Table.cs
- SqlDeflator.cs
- BindUriHelper.cs
- CustomCredentialPolicy.cs
- ThreadTrace.cs
- XmlSerializableReader.cs
- BatchStream.cs
- Thumb.cs
- HttpCapabilitiesBase.cs
- URLBuilder.cs
- SqlConnectionStringBuilder.cs
- HttpStaticObjectsCollectionWrapper.cs
- Wildcard.cs
- BuildResultCache.cs
- CommonGetThemePartSize.cs
- EntityViewGenerator.cs
- BaseComponentEditor.cs
- SoapRpcServiceAttribute.cs
- RadialGradientBrush.cs
- AutomationElement.cs
- BaseParagraph.cs
- mediapermission.cs
- XhtmlBasicObjectListAdapter.cs