Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / TransactedBatchingElement.cs / 1 / TransactedBatchingElement.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
using System.Configuration;
using System.ServiceModel.Description;
public sealed partial class TransactedBatchingElement : BehaviorExtensionElement
{
[ConfigurationProperty(ConfigurationStrings.MaxBatchSize, DefaultValue = 0)]
[IntegerValidator(MinValue = 0)]
public int MaxBatchSize
{
get {return (int) base[ConfigurationStrings.MaxBatchSize]; }
set {base[ConfigurationStrings.MaxBatchSize] = value; }
}
public override void CopyFrom(ServiceModelExtensionElement from)
{
base.CopyFrom(from);
TransactedBatchingElement source = from as TransactedBatchingElement;
#pragma warning suppress 56506 //[....]; base.CopyFrom() checks for 'from' being null
this.MaxBatchSize = source.MaxBatchSize;
}
protected internal override object CreateBehavior()
{
return new TransactedBatchingBehavior(this.MaxBatchSize);
}
public override Type BehaviorType
{
get { return typeof(TransactedBatchingBehavior); }
}
}
}
// 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
- CornerRadiusConverter.cs
- AssemblyAttributes.cs
- SR.cs
- Menu.cs
- SelectionProcessor.cs
- Solver.cs
- StylusEditingBehavior.cs
- XDeferredAxisSource.cs
- DataTablePropertyDescriptor.cs
- EngineSite.cs
- smtppermission.cs
- ObjectFullSpanRewriter.cs
- ApplicationDirectoryMembershipCondition.cs
- XPathBuilder.cs
- ClientConvert.cs
- DocumentPageHost.cs
- ScrollChangedEventArgs.cs
- DataColumnPropertyDescriptor.cs
- DeviceSpecificDesigner.cs
- CodeBlockBuilder.cs
- CodeDomConfigurationHandler.cs
- WizardForm.cs
- GridView.cs
- RepeaterItem.cs
- XmlSchemaCollection.cs
- TimelineClockCollection.cs
- StackOverflowException.cs
- MenuStrip.cs
- EndpointDiscoveryElement.cs
- SharedPersonalizationStateInfo.cs
- AssemblyBuilderData.cs
- OletxDependentTransaction.cs
- StringReader.cs
- ObjectComplexPropertyMapping.cs
- ErrorFormatterPage.cs
- JsonReaderDelegator.cs
- UnsafeNativeMethods.cs
- PresentationSource.cs
- ExpressionConverter.cs
- TextPattern.cs
- CompressEmulationStream.cs
- ParallelTimeline.cs
- HashCodeCombiner.cs
- Operand.cs
- EventBuilder.cs
- SliderAutomationPeer.cs
- SamlAssertionKeyIdentifierClause.cs
- LookupNode.cs
- TemplateField.cs
- MethodBuilderInstantiation.cs
- VectorAnimationUsingKeyFrames.cs
- WebPartDisplayMode.cs
- FontStretchConverter.cs
- CodeRemoveEventStatement.cs
- SymbolEqualComparer.cs
- DiagnosticTraceRecords.cs
- DiscardableAttribute.cs
- MILUtilities.cs
- DbParameterCollection.cs
- MethodSet.cs
- Size3D.cs
- Variable.cs
- SqlXml.cs
- XmlText.cs
- GroupJoinQueryOperator.cs
- SafeNativeMethods.cs
- CodeExpressionCollection.cs
- AsymmetricAlgorithm.cs
- SecureConversationSecurityTokenParameters.cs
- FileEnumerator.cs
- Help.cs
- LinqExpressionNormalizer.cs
- IsolatedStorageFile.cs
- ProgressBarRenderer.cs
- XmlCharCheckingWriter.cs
- RootCodeDomSerializer.cs
- HttpCookie.cs
- GatewayIPAddressInformationCollection.cs
- SmtpNtlmAuthenticationModule.cs
- linebase.cs
- PenThread.cs
- ManagementClass.cs
- CacheDict.cs
- SearchForVirtualItemEventArgs.cs
- StylusPointPropertyInfo.cs
- ISAPIWorkerRequest.cs
- CompModSwitches.cs
- ADConnectionHelper.cs
- AlternateView.cs
- TypedElement.cs
- ErrorHandlerModule.cs
- VoiceChangeEventArgs.cs
- SortDescription.cs
- EndpointReference.cs
- Clock.cs
- DurableServiceAttribute.cs
- WebFaultClientMessageInspector.cs
- HostProtectionException.cs
- DataGridViewDataErrorEventArgs.cs
- RuntimeIdentifierPropertyAttribute.cs