Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / PrivacyNoticeElement.cs / 1 / PrivacyNoticeElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.ServiceModel; using System.ServiceModel.Channels; public partial class PrivacyNoticeElement : BindingElementExtensionElement { [ConfigurationProperty(ConfigurationStrings.Url)] public Uri Url { get { return (Uri)base[ConfigurationStrings.Url]; } set { base[ConfigurationStrings.Url] = value; } } [ConfigurationProperty(ConfigurationStrings.Version, DefaultValue = 0)] [IntegerValidator(MinValue = 0)] public int Version { get { return (int)base[ConfigurationStrings.Version]; } set { base[ConfigurationStrings.Version] = value; } } public override Type BindingElementType { get { return typeof( PrivacyNoticeBindingElement ); } } public override void ApplyConfiguration(BindingElement bindingElement) { base.ApplyConfiguration(bindingElement); PrivacyNoticeBindingElement binding = (PrivacyNoticeBindingElement)bindingElement; binding.Url = this.Url; binding.Version = this.Version; } protected internal override BindingElement CreateBindingElement() { PrivacyNoticeBindingElement binding = new PrivacyNoticeBindingElement(); this.ApplyConfiguration(binding); return binding; } public override void CopyFrom(ServiceModelExtensionElement from) { base.CopyFrom(from); PrivacyNoticeElement source = (PrivacyNoticeElement) from; #pragma warning suppress 56506 // [....], base.CopyFrom() validates the argument this.Url = source.Url; this.Version = source.Version; } protected internal override void InitializeFrom(BindingElement bindingElement) { base.InitializeFrom(bindingElement); PrivacyNoticeBindingElement binding = (PrivacyNoticeBindingElement)bindingElement; this.Url = binding.Url; this.Version = binding.Version; } } } // 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
- MemberPathMap.cs
- HWStack.cs
- ArrayWithOffset.cs
- BaseServiceProvider.cs
- AuthenticateEventArgs.cs
- BitmapInitialize.cs
- WebColorConverter.cs
- TemplatedAdorner.cs
- SQLUtility.cs
- ExpressionBuilder.cs
- ToolboxItemAttribute.cs
- SqlBulkCopyColumnMapping.cs
- DefinitionUpdate.cs
- figurelength.cs
- Convert.cs
- HttpCapabilitiesBase.cs
- RectKeyFrameCollection.cs
- TargetFrameworkUtil.cs
- DataSourceListEditor.cs
- DataServiceQuery.cs
- MappingItemCollection.cs
- BindingContext.cs
- BaseParaClient.cs
- ChangePassword.cs
- ExpressionBuilder.cs
- PropVariant.cs
- ProxyHelper.cs
- DuplexChannelFactory.cs
- DataGridViewTextBoxColumn.cs
- FactoryRecord.cs
- VisualTarget.cs
- ReadOnlyDictionary.cs
- X509Certificate2Collection.cs
- CompiledRegexRunner.cs
- UriTemplateClientFormatter.cs
- Debug.cs
- ComplexLine.cs
- SmiMetaData.cs
- ListViewItemMouseHoverEvent.cs
- EdmComplexPropertyAttribute.cs
- MessageSecurityTokenVersion.cs
- CodeDirectiveCollection.cs
- IsolatedStorageFilePermission.cs
- PageAdapter.cs
- BaseConfigurationRecord.cs
- PartialList.cs
- HintTextMaxWidthConverter.cs
- DbConnectionPoolGroup.cs
- SoapSchemaMember.cs
- MSG.cs
- XamlSerializationHelper.cs
- FrameworkObject.cs
- BeginStoryboard.cs
- TreeViewItemAutomationPeer.cs
- Command.cs
- Geometry3D.cs
- AnnotationHelper.cs
- DrawingVisual.cs
- FillBehavior.cs
- ToolStripContextMenu.cs
- NullableConverter.cs
- ISAPIApplicationHost.cs
- RequestCachePolicy.cs
- AccessedThroughPropertyAttribute.cs
- CodePropertyReferenceExpression.cs
- DetailsViewDeleteEventArgs.cs
- CheckBoxBaseAdapter.cs
- WebRequestModuleElement.cs
- TextEditor.cs
- XmlUnspecifiedAttribute.cs
- Latin1Encoding.cs
- CompositeScriptReferenceEventArgs.cs
- Compiler.cs
- GeneralTransformCollection.cs
- DesignOnlyAttribute.cs
- jithelpers.cs
- ServiceDescriptionReflector.cs
- WsatConfiguration.cs
- CompilerScope.cs
- SiteMapSection.cs
- SimpleWorkerRequest.cs
- WindowsListView.cs
- DataGridViewColumnTypeEditor.cs
- UnmanagedBitmapWrapper.cs
- Console.cs
- RadioButtonAutomationPeer.cs
- StrokeSerializer.cs
- _FixedSizeReader.cs
- ColorConverter.cs
- GridViewCancelEditEventArgs.cs
- SqlRowUpdatingEvent.cs
- CustomSignedXml.cs
- HostedElements.cs
- Path.cs
- LiteralTextParser.cs
- UdpRetransmissionSettings.cs
- Dispatcher.cs
- StringUtil.cs
- DataKeyCollection.cs
- NullableDoubleAverageAggregationOperator.cs