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
- FillBehavior.cs
- ResourceSet.cs
- FlowLayout.cs
- Lasso.cs
- DataGridViewUtilities.cs
- PerspectiveCamera.cs
- PrivateFontCollection.cs
- translator.cs
- TypeHelpers.cs
- WebPartsPersonalizationAuthorization.cs
- SHA1CryptoServiceProvider.cs
- ProxyAttribute.cs
- PropertySegmentSerializer.cs
- DataSourceExpressionCollection.cs
- NetTcpBindingCollectionElement.cs
- NameObjectCollectionBase.cs
- HttpRequestMessageProperty.cs
- MemberInfoSerializationHolder.cs
- EmptyStringExpandableObjectConverter.cs
- TextRange.cs
- LabelEditEvent.cs
- PreservationFileReader.cs
- isolationinterop.cs
- DataServiceContext.cs
- CompositeKey.cs
- mediaclock.cs
- HijriCalendar.cs
- HeaderCollection.cs
- OleCmdHelper.cs
- CodeTypeMemberCollection.cs
- SafeNativeMethods.cs
- UniqueIdentifierService.cs
- RequestTimeoutManager.cs
- HttpServerVarsCollection.cs
- returneventsaver.cs
- ContentPlaceHolder.cs
- UnescapedXmlDiagnosticData.cs
- FigureHelper.cs
- GeneralTransform3DCollection.cs
- ClientScriptManagerWrapper.cs
- ECDsa.cs
- ControlParameter.cs
- DispatcherExceptionFilterEventArgs.cs
- arabicshape.cs
- CommandID.cs
- SecurityRuntime.cs
- CLRBindingWorker.cs
- OpacityConverter.cs
- HostAdapter.cs
- MSAANativeProvider.cs
- IndexedString.cs
- AsymmetricAlgorithm.cs
- MILUtilities.cs
- UITypeEditor.cs
- FilePresentation.cs
- ContractType.cs
- SqlAliasesReferenced.cs
- UriSection.cs
- UnknownWrapper.cs
- SortDescription.cs
- TypeSystem.cs
- OleDbSchemaGuid.cs
- DataServiceClientException.cs
- SoapSchemaMember.cs
- RequestCachePolicy.cs
- DivideByZeroException.cs
- Int32Converter.cs
- SafeCryptoHandles.cs
- TemplateModeChangedEventArgs.cs
- ElementNotEnabledException.cs
- OrderedDictionaryStateHelper.cs
- SecureUICommand.cs
- SendReply.cs
- FlowDocument.cs
- BindingMemberInfo.cs
- DoubleAnimation.cs
- GroupQuery.cs
- Renderer.cs
- AccessorTable.cs
- DynamicMethod.cs
- ReversePositionQuery.cs
- MatrixStack.cs
- XhtmlConformanceSection.cs
- Point3DKeyFrameCollection.cs
- OdbcConnectionHandle.cs
- XmlnsCompatibleWithAttribute.cs
- SqlProviderUtilities.cs
- SoapExtensionImporter.cs
- Canvas.cs
- GridViewDeletedEventArgs.cs
- ActivityDesignerLayoutSerializers.cs
- SizeKeyFrameCollection.cs
- StructuredType.cs
- QuaternionAnimation.cs
- UnsafeNativeMethods.cs
- HelpProvider.cs
- ResourceCategoryAttribute.cs
- IndexedGlyphRun.cs
- TreeNode.cs
- SafeRightsManagementHandle.cs