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
- XmlSerializerNamespaces.cs
- MatrixIndependentAnimationStorage.cs
- EventTask.cs
- MetadataProperty.cs
- RtfNavigator.cs
- WindowsListViewItem.cs
- Console.cs
- ManipulationVelocities.cs
- HostProtectionPermission.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- COM2IProvidePropertyBuilderHandler.cs
- ColorDialog.cs
- DropDownButton.cs
- FrameworkElement.cs
- CollectionConverter.cs
- Stylesheet.cs
- Label.cs
- PropertyValueUIItem.cs
- OutputCache.cs
- Attributes.cs
- MetadataItem_Static.cs
- TripleDESCryptoServiceProvider.cs
- EventPropertyMap.cs
- DataGridViewTextBoxEditingControl.cs
- MouseEvent.cs
- TextAction.cs
- WindowsSolidBrush.cs
- DataObjectCopyingEventArgs.cs
- LogEntryHeaderDeserializer.cs
- ObjectStorage.cs
- WebPartEditVerb.cs
- wgx_sdk_version.cs
- odbcmetadatacollectionnames.cs
- PersonalizationStateInfo.cs
- Connector.cs
- GridViewRow.cs
- InvokeHandlers.cs
- SourceFilter.cs
- ServiceMetadataBehavior.cs
- CodeMemberProperty.cs
- Timeline.cs
- ServiceParser.cs
- UserValidatedEventArgs.cs
- FontSourceCollection.cs
- CustomLineCap.cs
- EnumConverter.cs
- FixedLineResult.cs
- StreamGeometry.cs
- HtmlInputControl.cs
- ImmutableClientRuntime.cs
- TableStyle.cs
- InheritablePropertyChangeInfo.cs
- XmlException.cs
- hwndwrapper.cs
- Win32Exception.cs
- WebBrowserUriTypeConverter.cs
- PackageRelationshipSelector.cs
- ObjectListCommandCollection.cs
- CategoryNameCollection.cs
- BlobPersonalizationState.cs
- InstanceHandleReference.cs
- DataPointer.cs
- XPathChildIterator.cs
- Int16Animation.cs
- Point4DValueSerializer.cs
- RepeaterItemEventArgs.cs
- ConstrainedDataObject.cs
- StateMachine.cs
- DbParameterHelper.cs
- DesignerOptionService.cs
- SettingsProviderCollection.cs
- ObjectDataSourceChooseTypePanel.cs
- ArithmeticLiteral.cs
- RefreshPropertiesAttribute.cs
- ColumnMapCopier.cs
- ProjectionPath.cs
- OleDbParameter.cs
- ResourceLoader.cs
- ColumnHeader.cs
- Registry.cs
- AssemblyResourceLoader.cs
- AbandonedMutexException.cs
- CachedFontFamily.cs
- TcpHostedTransportConfiguration.cs
- RectAnimation.cs
- LinkedList.cs
- SqlDataSourceView.cs
- SecuritySessionClientSettings.cs
- Peer.cs
- DragDeltaEventArgs.cs
- InvalidContentTypeException.cs
- EntityProviderFactory.cs
- AutomationProperty.cs
- ADMembershipProvider.cs
- ProbeMatches11.cs
- ImageAnimator.cs
- ScaleTransform.cs
- ManagedFilter.cs
- RegexRunner.cs
- DictationGrammar.cs