Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / WindowsStreamSecurityElement.cs / 1 / WindowsStreamSecurityElement.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
using System.ComponentModel;
using System.Configuration;
using System.Globalization;
using System.Net.Security;
using System.Text;
using System.ServiceModel.Channels;
public sealed partial class WindowsStreamSecurityElement : BindingElementExtensionElement
{
public WindowsStreamSecurityElement()
{
}
[ConfigurationProperty(ConfigurationStrings.ProtectionLevel, DefaultValue = ConnectionOrientedTransportDefaults.ProtectionLevel)]
[StandardRuntimeEnumValidator(typeof(ProtectionLevel))]
public ProtectionLevel ProtectionLevel
{
get { return (ProtectionLevel)base[ConfigurationStrings.ProtectionLevel]; }
set { base[ConfigurationStrings.ProtectionLevel] = value; }
}
public override void ApplyConfiguration(BindingElement bindingElement)
{
base.ApplyConfiguration(bindingElement);
WindowsStreamSecurityBindingElement windowsBindingElement =
(WindowsStreamSecurityBindingElement)bindingElement;
windowsBindingElement.ProtectionLevel = this.ProtectionLevel;
}
protected internal override BindingElement CreateBindingElement()
{
WindowsStreamSecurityBindingElement windowsBindingElement
= new WindowsStreamSecurityBindingElement();
this.ApplyConfiguration(windowsBindingElement);
return windowsBindingElement;
}
public override Type BindingElementType
{
get { return typeof(WindowsStreamSecurityBindingElement); }
}
public override void CopyFrom(ServiceModelExtensionElement from)
{
base.CopyFrom(from);
WindowsStreamSecurityElement source = (WindowsStreamSecurityElement)from;
#pragma warning suppress 56506 // [....], base.CopyFrom() validates the argument
this.ProtectionLevel = source.ProtectionLevel;
}
protected internal override void InitializeFrom(BindingElement bindingElement)
{
base.InitializeFrom(bindingElement);
WindowsStreamSecurityBindingElement windowsBindingElement
= (WindowsStreamSecurityBindingElement)bindingElement;
this.ProtectionLevel = windowsBindingElement.ProtectionLevel;
}
}
}
// 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
- BatchWriter.cs
- LinqExpressionNormalizer.cs
- IdentitySection.cs
- ScriptDescriptor.cs
- AlternateViewCollection.cs
- CalendarAutomationPeer.cs
- MetadataCollection.cs
- TextAdaptor.cs
- HtmlDocument.cs
- SqlClientMetaDataCollectionNames.cs
- UnSafeCharBuffer.cs
- FrameSecurityDescriptor.cs
- ServiceRoute.cs
- FormatVersion.cs
- AudioStateChangedEventArgs.cs
- Stack.cs
- RubberbandSelector.cs
- ZipIOLocalFileBlock.cs
- TagMapCollection.cs
- SocketPermission.cs
- TransportOutputChannel.cs
- AdornerDecorator.cs
- DesignerCatalogPartChrome.cs
- DataSourceView.cs
- ImportCatalogPart.cs
- StylusPointPropertyUnit.cs
- TextViewBase.cs
- EdmTypeAttribute.cs
- Number.cs
- UniqueIdentifierService.cs
- XPathCompileException.cs
- ConfigXmlText.cs
- SplashScreenNativeMethods.cs
- DataGridRow.cs
- MemberDescriptor.cs
- ScriptingAuthenticationServiceSection.cs
- DynamicMethod.cs
- CurrentChangedEventManager.cs
- baseaxisquery.cs
- InheritanceRules.cs
- FixedDocumentPaginator.cs
- MatrixAnimationBase.cs
- FixedPosition.cs
- Helpers.cs
- MasterPageCodeDomTreeGenerator.cs
- UrlMapping.cs
- SafeArchiveContext.cs
- AmbiguousMatchException.cs
- MinMaxParagraphWidth.cs
- LowerCaseStringConverter.cs
- SqlDependencyListener.cs
- TextElement.cs
- MultiSelectRootGridEntry.cs
- ColumnBinding.cs
- xmlglyphRunInfo.cs
- storepermission.cs
- Help.cs
- codemethodreferenceexpression.cs
- DataService.cs
- LabelLiteral.cs
- AuthorizationContext.cs
- ZoneButton.cs
- StandardCommands.cs
- Selector.cs
- XamlSerializerUtil.cs
- SystemInformation.cs
- MailDefinition.cs
- ReturnType.cs
- ParameterToken.cs
- FileDialog_Vista_Interop.cs
- CultureSpecificCharacterBufferRange.cs
- DataSourceCache.cs
- ErrorRuntimeConfig.cs
- TextParagraph.cs
- BindValidationContext.cs
- MarkerProperties.cs
- future.cs
- MinMaxParagraphWidth.cs
- UriSection.cs
- BackgroundFormatInfo.cs
- TabRenderer.cs
- AccessibleObject.cs
- Module.cs
- HtmlValidationSummaryAdapter.cs
- DelegateTypeInfo.cs
- Camera.cs
- StreamingContext.cs
- EventArgs.cs
- CodeDomSerializer.cs
- Model3D.cs
- LinkClickEvent.cs
- HttpCachePolicyElement.cs
- ProcessHost.cs
- GenericIdentity.cs
- DelegateBodyWriter.cs
- initElementDictionary.cs
- CodeTryCatchFinallyStatement.cs
- SelectorItemAutomationPeer.cs
- LocalizationParserHooks.cs
- SoapSchemaImporter.cs