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
- TextAdaptor.cs
- IItemProperties.cs
- Rotation3DAnimation.cs
- CodeCompileUnit.cs
- WebPartConnection.cs
- Error.cs
- UserPreferenceChangedEventArgs.cs
- PageVisual.cs
- HitTestFilterBehavior.cs
- HttpHandlerAction.cs
- IriParsingElement.cs
- HttpModuleCollection.cs
- SafeThreadHandle.cs
- CompilationUnit.cs
- ColorTransform.cs
- ConfigXmlCDataSection.cs
- CellPartitioner.cs
- NavigatingCancelEventArgs.cs
- SuppressMessageAttribute.cs
- ToolStripAdornerWindowService.cs
- MutexSecurity.cs
- RoleGroup.cs
- ConsumerConnectionPointCollection.cs
- DebuggerAttributes.cs
- ResponseBodyWriter.cs
- SqlException.cs
- GacUtil.cs
- _ChunkParse.cs
- HyperLinkStyle.cs
- TextEndOfLine.cs
- PersonalizationProviderCollection.cs
- Module.cs
- SafeLibraryHandle.cs
- ReadOnlyHierarchicalDataSourceView.cs
- RuleSetCollection.cs
- BindingBase.cs
- WindowsScrollBarBits.cs
- ApplicationDirectory.cs
- FlowSwitchLink.cs
- RawAppCommandInputReport.cs
- Vector3DValueSerializer.cs
- DeleteBookmarkScope.cs
- CAGDesigner.cs
- errorpatternmatcher.cs
- MaterialCollection.cs
- Process.cs
- Visual3D.cs
- NameSpaceExtractor.cs
- SqlTransaction.cs
- SimpleWebHandlerParser.cs
- DoubleAnimationUsingKeyFrames.cs
- SurrogateSelector.cs
- KnownColorTable.cs
- BufferedReadStream.cs
- LocalizationParserHooks.cs
- FontFamilyIdentifier.cs
- UserCancellationException.cs
- ContractReference.cs
- LeaseManager.cs
- PersistenceMetadataNamespace.cs
- InputEventArgs.cs
- WindowsToolbarAsMenu.cs
- ListCollectionView.cs
- Message.cs
- AnnotationDocumentPaginator.cs
- RemoteWebConfigurationHost.cs
- WebPartMovingEventArgs.cs
- CacheVirtualItemsEvent.cs
- FileLoadException.cs
- ListView.cs
- WsdlImporterElement.cs
- UrlMapping.cs
- WebControl.cs
- PropertyEmitterBase.cs
- IndexOutOfRangeException.cs
- TextParaClient.cs
- BuildManager.cs
- ErasingStroke.cs
- SymbolMethod.cs
- storepermission.cs
- XmlWriterTraceListener.cs
- VirtualPathUtility.cs
- RegionInfo.cs
- BitmapFrame.cs
- UIntPtr.cs
- Single.cs
- WebConfigurationFileMap.cs
- XPathChildIterator.cs
- ModulesEntry.cs
- ClientConfigurationHost.cs
- DocumentViewerBaseAutomationPeer.cs
- Function.cs
- ToolboxItemFilterAttribute.cs
- BitmapFrameEncode.cs
- CodeMethodReturnStatement.cs
- WebOperationContext.cs
- PerformanceCounterManager.cs
- DataFieldConverter.cs
- GridViewRow.cs
- GenerateTemporaryAssemblyTask.cs