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
- SurrogateSelector.cs
- PackageStore.cs
- NetworkInterface.cs
- CustomTypeDescriptor.cs
- PasswordDeriveBytes.cs
- ErrorStyle.cs
- TypeGeneratedEventArgs.cs
- FromRequest.cs
- MetadataUtilsSmi.cs
- DefaultMemberAttribute.cs
- localization.cs
- PropertyConverter.cs
- ContentElement.cs
- HttpCacheParams.cs
- OracleBoolean.cs
- Aggregates.cs
- GridViewRow.cs
- EncryptedPackage.cs
- KeyPressEvent.cs
- TcpClientChannel.cs
- DeploymentExceptionMapper.cs
- SystemInformation.cs
- FormatStringEditor.cs
- HashRepartitionEnumerator.cs
- ClockGroup.cs
- PassportIdentity.cs
- LinkedList.cs
- DataGridViewRowCollection.cs
- TagPrefixInfo.cs
- Page.cs
- baseaxisquery.cs
- DependencyPropertyKind.cs
- XsdValidatingReader.cs
- WizardDesigner.cs
- ServiceNameElementCollection.cs
- Variable.cs
- GcHandle.cs
- XamlToRtfParser.cs
- xmlfixedPageInfo.cs
- GenericEnumerator.cs
- OutputCacheProfileCollection.cs
- DetailsView.cs
- FixedTextContainer.cs
- ImpersonationOption.cs
- TextSelection.cs
- XmlNamespaceMapping.cs
- TextEffect.cs
- InlineUIContainer.cs
- XmlException.cs
- DrawingDrawingContext.cs
- BridgeDataRecord.cs
- Misc.cs
- RTLAwareMessageBox.cs
- SoapObjectInfo.cs
- NotImplementedException.cs
- PeerObject.cs
- StopStoryboard.cs
- PropertyRef.cs
- ActivityDesignerResources.cs
- EncoderReplacementFallback.cs
- EndpointConfigContainer.cs
- NoClickablePointException.cs
- ColorKeyFrameCollection.cs
- ServiceModelSecurityTokenRequirement.cs
- datacache.cs
- SEHException.cs
- SafeEventLogWriteHandle.cs
- Schema.cs
- XmlILCommand.cs
- NameTable.cs
- DataSourceXmlTextReader.cs
- CodeComment.cs
- OleDbParameter.cs
- SchemaExporter.cs
- EventLogPropertySelector.cs
- URI.cs
- RequiredFieldValidator.cs
- FileDialogPermission.cs
- RawTextInputReport.cs
- Vector3DIndependentAnimationStorage.cs
- ChangesetResponse.cs
- SQLMoneyStorage.cs
- DataBindingCollection.cs
- WorkflowInstanceExtensionProvider.cs
- DockProviderWrapper.cs
- SubstitutionList.cs
- KeyedCollection.cs
- WasHttpHandlersInstallComponent.cs
- StsCommunicationException.cs
- KeyGestureValueSerializer.cs
- HandleCollector.cs
- _SafeNetHandles.cs
- CaseStatementSlot.cs
- CrossContextChannel.cs
- MappingModelBuildProvider.cs
- CheckBoxPopupAdapter.cs
- ObjectComplexPropertyMapping.cs
- StringValueSerializer.cs
- ClientTargetSection.cs
- TypeDescriptionProvider.cs