Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / NetTcpSecurityElement.cs / 1 / NetTcpSecurityElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.ServiceModel.Channels; using System.Globalization; using System.Net; using System.Net.Security; using System.ServiceModel; using System.ServiceModel.Security; using System.ComponentModel; public sealed partial class NetTcpSecurityElement : ConfigurationElement { [ConfigurationProperty(ConfigurationStrings.Mode, DefaultValue = NetTcpSecurity.DefaultMode)] [ServiceModelEnumValidator(typeof(SecurityModeHelper))] public SecurityMode Mode { get { return (SecurityMode)base[ConfigurationStrings.Mode]; } set { base[ConfigurationStrings.Mode] = value; } } [ConfigurationProperty(ConfigurationStrings.Transport)] public TcpTransportSecurityElement Transport { get { return (TcpTransportSecurityElement)base[ConfigurationStrings.Transport]; } } [ConfigurationProperty(ConfigurationStrings.Message)] public MessageSecurityOverTcpElement Message { get { return (MessageSecurityOverTcpElement)base[ConfigurationStrings.Message]; } } internal void ApplyConfiguration(NetTcpSecurity security) { if (security == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } security.Mode = this.Mode; this.Transport.ApplyConfiguration(security.Transport); this.Message.ApplyConfiguration(security.Message); } internal void InitializeFrom(NetTcpSecurity security) { if (security == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } this.Mode = security.Mode; this.Transport.InitializeFrom(security.Transport); this.Message.InitializeFrom(security.Message); } } } // 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
- TypeLibConverter.cs
- BaseCAMarshaler.cs
- ActiveDocumentEvent.cs
- EventManager.cs
- SqlUdtInfo.cs
- DifferencingCollection.cs
- SectionRecord.cs
- ProfileProvider.cs
- ExeConfigurationFileMap.cs
- CompoundFileIOPermission.cs
- LZCodec.cs
- SHA1.cs
- XLinq.cs
- CodeIdentifier.cs
- TreeNodeCollection.cs
- SafeFileMapViewHandle.cs
- TextRangeEditTables.cs
- WebResponse.cs
- AuthenticatingEventArgs.cs
- CopyNamespacesAction.cs
- EntityReference.cs
- GlyphManager.cs
- IProvider.cs
- LiteralTextContainerControlBuilder.cs
- CustomError.cs
- UnionCodeGroup.cs
- MdiWindowListStrip.cs
- PropertyGrid.cs
- followingsibling.cs
- DecimalConstantAttribute.cs
- ProfileWorkflowElement.cs
- EventHandlerService.cs
- PreProcessInputEventArgs.cs
- DataViewManager.cs
- WebPartChrome.cs
- CellCreator.cs
- ValueChangedEventManager.cs
- RepeatButton.cs
- DigitShape.cs
- ProjectionPruner.cs
- StringKeyFrameCollection.cs
- C14NUtil.cs
- ExtensionMethods.cs
- SqlBuffer.cs
- SmtpNegotiateAuthenticationModule.cs
- Process.cs
- ToolboxControl.cs
- ObjectQueryExecutionPlan.cs
- XmlSchema.cs
- SQLInt64.cs
- XXXInfos.cs
- WebBrowsableAttribute.cs
- HyperlinkAutomationPeer.cs
- ExcludeFromCodeCoverageAttribute.cs
- AncestorChangedEventArgs.cs
- SessionStateContainer.cs
- DBSchemaTable.cs
- DesignerHierarchicalDataSourceView.cs
- WebServicesDescriptionAttribute.cs
- ExtensionCollection.cs
- DesignerToolStripControlHost.cs
- SizeAnimation.cs
- TriggerAction.cs
- XmlSchemaComplexContentExtension.cs
- TextBox.cs
- ServiceDesigner.cs
- FileDataSourceCache.cs
- mediaeventshelper.cs
- ForwardPositionQuery.cs
- ConfigXmlComment.cs
- SafeCertificateStore.cs
- Gdiplus.cs
- ExtensionFile.cs
- InvalidTimeZoneException.cs
- ConstantExpression.cs
- SubclassTypeValidator.cs
- SynchronousReceiveBehavior.cs
- FlowLayoutPanel.cs
- CachingHintValidation.cs
- MethodBuilderInstantiation.cs
- FlowStep.cs
- MoveSizeWinEventHandler.cs
- PrintDialogException.cs
- ListManagerBindingsCollection.cs
- GridViewAutomationPeer.cs
- KeyValuePairs.cs
- ContextStaticAttribute.cs
- SqlConnectionPoolGroupProviderInfo.cs
- XmlSchemaObjectCollection.cs
- ItemContainerPattern.cs
- StylusPoint.cs
- InvalidFilterCriteriaException.cs
- SerialPinChanges.cs
- SSmlParser.cs
- TableCell.cs
- SrgsElementFactory.cs
- WebServiceData.cs
- XmlnsCompatibleWithAttribute.cs
- SqlDataAdapter.cs
- basecomparevalidator.cs