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
- ResXBuildProvider.cs
- PageBuildProvider.cs
- DetailsViewDeleteEventArgs.cs
- MetaType.cs
- Convert.cs
- IgnoreSectionHandler.cs
- Comparer.cs
- WmpBitmapDecoder.cs
- PathSegmentCollection.cs
- DynamicRenderer.cs
- VisemeEventArgs.cs
- LogicalTreeHelper.cs
- PersistenceTask.cs
- HybridObjectCache.cs
- SQLByte.cs
- TabPage.cs
- DbProviderFactory.cs
- FontDriver.cs
- QilPatternFactory.cs
- Walker.cs
- DnsPermission.cs
- RadioButtonDesigner.cs
- XmlSchemaAnnotated.cs
- DropDownList.cs
- ExtendedTransformFactory.cs
- ReversePositionQuery.cs
- DefaultTraceListener.cs
- Array.cs
- SQLSingleStorage.cs
- PrivilegeNotHeldException.cs
- TransformConverter.cs
- QuotedPrintableStream.cs
- VisualStyleElement.cs
- UpdateRecord.cs
- TaskHelper.cs
- SqlUtil.cs
- CodeDefaultValueExpression.cs
- TimersDescriptionAttribute.cs
- HashRepartitionStream.cs
- KerberosTicketHashIdentifierClause.cs
- XmlEventCache.cs
- DynamicDataRouteHandler.cs
- ListView.cs
- SafeArrayRankMismatchException.cs
- TransformValueSerializer.cs
- EllipticalNodeOperations.cs
- WindowsGraphicsCacheManager.cs
- GridViewDeleteEventArgs.cs
- ToolboxItemCollection.cs
- AnimationLayer.cs
- EncodingFallbackAwareXmlTextWriter.cs
- TextElementEditingBehaviorAttribute.cs
- MsmqIntegrationChannelFactory.cs
- xamlnodes.cs
- PolyLineSegment.cs
- DataContractSerializerServiceBehavior.cs
- RsaKeyGen.cs
- SerialReceived.cs
- PrintDialog.cs
- DataGridTable.cs
- MetadataSource.cs
- WebScriptServiceHostFactory.cs
- ReferenceConverter.cs
- BitmapMetadata.cs
- _SslStream.cs
- CryptoApi.cs
- ProcessStartInfo.cs
- MsmqIntegrationInputChannel.cs
- CharacterString.cs
- EdmScalarPropertyAttribute.cs
- DesignerAttribute.cs
- BitmapInitialize.cs
- FillErrorEventArgs.cs
- RelationshipNavigation.cs
- XmlIlVisitor.cs
- SqlSupersetValidator.cs
- CompressionTransform.cs
- DesignDataSource.cs
- SecurityElement.cs
- ScriptComponentDescriptor.cs
- WindowsGraphicsCacheManager.cs
- VBCodeProvider.cs
- RegexCode.cs
- AssemblyFilter.cs
- DependsOnAttribute.cs
- Int32Rect.cs
- AssemblyAttributesGoHere.cs
- Comparer.cs
- ExtendedPropertyCollection.cs
- ConvertTextFrag.cs
- LongAverageAggregationOperator.cs
- ListViewGroup.cs
- WebPartEditorOkVerb.cs
- ReadingWritingEntityEventArgs.cs
- StateWorkerRequest.cs
- BinHexEncoder.cs
- StaticFileHandler.cs
- OptimizerPatterns.cs
- ErrorStyle.cs
- XmlNullResolver.cs