Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / DataContractSerializerElement.cs / 1 / DataContractSerializerElement.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.ServiceModel.Security; using System.ServiceModel.Dispatcher; using System.ServiceModel.Description; public sealed partial class DataContractSerializerElement : BehaviorExtensionElement { public DataContractSerializerElement() { } [ConfigurationProperty(ConfigurationStrings.IgnoreExtensionDataObject, DefaultValue = DataContractSerializerDefaults.IgnoreExtensionDataObject)] public bool IgnoreExtensionDataObject { get {return (bool) base[ConfigurationStrings.IgnoreExtensionDataObject]; } set {base[ConfigurationStrings.IgnoreExtensionDataObject] = value; } } [ConfigurationProperty(ConfigurationStrings.MaxItemsInObjectGraph, DefaultValue = DataContractSerializerDefaults.MaxItemsInObjectGraph)] [IntegerValidator(MinValue = 0)] public int MaxItemsInObjectGraph { get { return (int)base[ConfigurationStrings.MaxItemsInObjectGraph]; } set { base[ConfigurationStrings.MaxItemsInObjectGraph] = value; } } public override void CopyFrom(ServiceModelExtensionElement from) { base.CopyFrom(from); DataContractSerializerElement source = (DataContractSerializerElement)from; #pragma warning suppress 56506 //[....]; base.CopyFrom() checks for 'from' being null this.IgnoreExtensionDataObject = source.IgnoreExtensionDataObject; this.MaxItemsInObjectGraph = source.MaxItemsInObjectGraph; } protected internal override object CreateBehavior() { return new DataContractSerializerServiceBehavior(this.IgnoreExtensionDataObject, this.MaxItemsInObjectGraph); } public override Type BehaviorType { get { return typeof(DataContractSerializerServiceBehavior); } } } } // 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
- ReadOnlyPermissionSet.cs
- StylusButton.cs
- WindowsPen.cs
- AppSecurityManager.cs
- HtmlTextArea.cs
- Region.cs
- DataGridViewRowPostPaintEventArgs.cs
- OutputCacheSection.cs
- SizeLimitedCache.cs
- ImportCatalogPart.cs
- FrameAutomationPeer.cs
- Run.cs
- PageBuildProvider.cs
- TemplateInstanceAttribute.cs
- ScrollPattern.cs
- embossbitmapeffect.cs
- BaseAppDomainProtocolHandler.cs
- XsdCachingReader.cs
- PageAsyncTask.cs
- Duration.cs
- DataRecordInfo.cs
- _CookieModule.cs
- CorrelationManager.cs
- AspCompat.cs
- AncillaryOps.cs
- CssClassPropertyAttribute.cs
- FlowchartStart.xaml.cs
- SpotLight.cs
- BooleanConverter.cs
- TextTreeDeleteContentUndoUnit.cs
- ParameterInfo.cs
- XmlHelper.cs
- MsmqInputChannelListenerBase.cs
- LogLogRecord.cs
- SettingsBindableAttribute.cs
- DataSet.cs
- ServiceNotStartedException.cs
- TabControlEvent.cs
- VisualStyleInformation.cs
- DynamicQueryStringParameter.cs
- XsdDataContractExporter.cs
- UiaCoreProviderApi.cs
- TextClipboardData.cs
- AppDomainUnloadedException.cs
- ChangeDirector.cs
- ImageFormatConverter.cs
- ParsedRoute.cs
- HttpResponseHeader.cs
- regiisutil.cs
- IPEndPoint.cs
- ControlPager.cs
- RelationshipManager.cs
- ToolBarTray.cs
- ProvidePropertyAttribute.cs
- shaperfactory.cs
- LicenseContext.cs
- SourceElementsCollection.cs
- PaperSize.cs
- WSDualHttpSecurityMode.cs
- XmlDesignerDataSourceView.cs
- XmlSchemaSubstitutionGroup.cs
- DocumentSchemaValidator.cs
- ExecutionEngineException.cs
- Translator.cs
- TreeNodeCollection.cs
- XmlSchemaAppInfo.cs
- StreamAsIStream.cs
- QilReplaceVisitor.cs
- HttpStreamXmlDictionaryReader.cs
- SamlAuthenticationStatement.cs
- HtmlInputRadioButton.cs
- HyperlinkAutomationPeer.cs
- BrowserCapabilitiesFactory35.cs
- ExpandedWrapper.cs
- PageClientProxyGenerator.cs
- OraclePermissionAttribute.cs
- HttpListenerPrefixCollection.cs
- Container.cs
- KoreanLunisolarCalendar.cs
- TypeExtensions.cs
- DiscoveryReferences.cs
- BitmapEffectInputConnector.cs
- DeferrableContentConverter.cs
- ConnectionManagementElementCollection.cs
- PostBackTrigger.cs
- DurationConverter.cs
- LicenseManager.cs
- RedirectionProxy.cs
- XmlSchemaComplexType.cs
- WebBodyFormatMessageProperty.cs
- BinaryWriter.cs
- AssemblyCache.cs
- relpropertyhelper.cs
- DictionaryBase.cs
- MailWriter.cs
- PrivateFontCollection.cs
- RequestBringIntoViewEventArgs.cs
- _UriTypeConverter.cs
- WindowsTitleBar.cs
- Point4D.cs