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
- WebPartMinimizeVerb.cs
- BaseAppDomainProtocolHandler.cs
- ChannelListenerBase.cs
- DataTableMappingCollection.cs
- XmlAnyAttributeAttribute.cs
- CharAnimationBase.cs
- PropertyCondition.cs
- DataGridViewTextBoxColumn.cs
- SectionRecord.cs
- EntityFrameworkVersions.cs
- _FtpDataStream.cs
- Debug.cs
- UnsafeNativeMethods.cs
- RandomDelayQueuedSendsAsyncResult.cs
- TypeConverterAttribute.cs
- TextParagraphCache.cs
- DynamicDataRouteHandler.cs
- BrowserDefinitionCollection.cs
- XmlTextAttribute.cs
- WindowsSolidBrush.cs
- ProfileSettings.cs
- GenericArgumentsUpdater.cs
- BaseAddressElement.cs
- RunWorkerCompletedEventArgs.cs
- x509utils.cs
- BaseDataBoundControl.cs
- SHA256Managed.cs
- SecurityTokenTypes.cs
- MetadataSource.cs
- NumberFormatter.cs
- OutOfMemoryException.cs
- CollectionConverter.cs
- BitHelper.cs
- HiddenFieldPageStatePersister.cs
- MarkedHighlightComponent.cs
- _LazyAsyncResult.cs
- MethodAccessException.cs
- LocatorBase.cs
- SchemaCollectionPreprocessor.cs
- SQlBooleanStorage.cs
- EventLogPermissionAttribute.cs
- EmptyCollection.cs
- ZoneMembershipCondition.cs
- DefaultPrintController.cs
- TopClause.cs
- TableDesigner.cs
- KeyValueSerializer.cs
- HtmlSelect.cs
- SendSecurityHeaderElement.cs
- EventEntry.cs
- MouseEventArgs.cs
- QilXmlWriter.cs
- MenuItem.cs
- ProxyGenerator.cs
- SID.cs
- SecurityDocument.cs
- WebHostedComPlusServiceHost.cs
- RequiredAttributeAttribute.cs
- X509Utils.cs
- ServiceDescription.cs
- SmtpClient.cs
- DataControlImageButton.cs
- Attribute.cs
- XmlWrappingReader.cs
- SortDescription.cs
- ScriptReferenceEventArgs.cs
- UserNameSecurityTokenProvider.cs
- ObjectViewFactory.cs
- StrongNamePublicKeyBlob.cs
- NativeRightsManagementAPIsStructures.cs
- PopupRootAutomationPeer.cs
- ViewStateModeByIdAttribute.cs
- Sql8ExpressionRewriter.cs
- SafeSystemMetrics.cs
- SystemIPAddressInformation.cs
- Content.cs
- Calendar.cs
- LinearGradientBrush.cs
- MultiBinding.cs
- SchemaCollectionPreprocessor.cs
- AsymmetricSignatureFormatter.cs
- ScriptControl.cs
- TextTreeDeleteContentUndoUnit.cs
- XmlReflectionImporter.cs
- SafeMemoryMappedFileHandle.cs
- OleDbCommand.cs
- DbMetaDataColumnNames.cs
- DataKey.cs
- ControlBindingsCollection.cs
- TabControlToolboxItem.cs
- OleDbReferenceCollection.cs
- WebPartExportVerb.cs
- DefaultValueConverter.cs
- HtmlInputText.cs
- BStrWrapper.cs
- WindowsListViewGroup.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- RegexRunner.cs
- XmlTextWriter.cs
- DocumentGridPage.cs