Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / DataServiceBehavior.cs / 1305376 / DataServiceBehavior.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Holds configuration of service behavior.
//
//
// @owner [....]
//---------------------------------------------------------------------
namespace System.Data.Services
{
using System.Data.Services.Common;
/// Use this class to add settings that define service behavior.
public sealed class DataServiceBehavior
{
///
/// Initializes a new .
///
internal DataServiceBehavior()
{
this.InvokeInterceptorsOnLinkDelete = true;
this.AcceptCountRequests = true;
this.AcceptProjectionRequests = true;
this.MaxProtocolVersion = DataServiceProtocolVersion.V1;
}
///
/// Whether to invoke change interceptor on link delete.
///
public bool InvokeInterceptorsOnLinkDelete
{
get;
set;
}
///
/// Whether $count and $inlinecount requests should be accepted
///
public bool AcceptCountRequests
{
get;
set;
}
///
/// Whether projection requests should be accepted
///
public bool AcceptProjectionRequests
{
get;
set;
}
///
/// Max version of the response sent by server
///
public DataServiceProtocolVersion MaxProtocolVersion
{
get;
set;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Holds configuration of service behavior.
//
//
// @owner [....]
//---------------------------------------------------------------------
namespace System.Data.Services
{
using System.Data.Services.Common;
/// Use this class to add settings that define service behavior.
public sealed class DataServiceBehavior
{
///
/// Initializes a new .
///
internal DataServiceBehavior()
{
this.InvokeInterceptorsOnLinkDelete = true;
this.AcceptCountRequests = true;
this.AcceptProjectionRequests = true;
this.MaxProtocolVersion = DataServiceProtocolVersion.V1;
}
///
/// Whether to invoke change interceptor on link delete.
///
public bool InvokeInterceptorsOnLinkDelete
{
get;
set;
}
///
/// Whether $count and $inlinecount requests should be accepted
///
public bool AcceptCountRequests
{
get;
set;
}
///
/// Whether projection requests should be accepted
///
public bool AcceptProjectionRequests
{
get;
set;
}
///
/// Max version of the response sent by server
///
public DataServiceProtocolVersion MaxProtocolVersion
{
get;
set;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- GacUtil.cs
- DBSchemaRow.cs
- CategoryNameCollection.cs
- NumericPagerField.cs
- MeasurementDCInfo.cs
- MetadataArtifactLoaderCompositeResource.cs
- Visual3D.cs
- EventLogEntryCollection.cs
- BufferedGraphicsContext.cs
- RotateTransform.cs
- FormViewUpdateEventArgs.cs
- DataGridTableStyleMappingNameEditor.cs
- UriTemplateTableMatchCandidate.cs
- CollectionViewGroupInternal.cs
- GroupJoinQueryOperator.cs
- WebServiceReceive.cs
- DataGridDetailsPresenterAutomationPeer.cs
- InstanceNotFoundException.cs
- RequestBringIntoViewEventArgs.cs
- GZipUtils.cs
- ConnectorSelectionGlyph.cs
- SafePointer.cs
- SqlConnection.cs
- QilStrConcatenator.cs
- formatter.cs
- HelpInfo.cs
- XmlSchemaCompilationSettings.cs
- OverflowException.cs
- CounterCreationDataCollection.cs
- DataControlLinkButton.cs
- BaseTransportHeaders.cs
- XmlAnyAttributeAttribute.cs
- TabItemWrapperAutomationPeer.cs
- Trace.cs
- TraceSection.cs
- Vector3D.cs
- EllipseGeometry.cs
- Cast.cs
- TableLayoutPanelDesigner.cs
- EncryptedPackage.cs
- PathSegmentCollection.cs
- MultilineStringConverter.cs
- SQLInt64Storage.cs
- DataTemplate.cs
- SizeChangedInfo.cs
- EnumerationRangeValidationUtil.cs
- ProgressPage.cs
- SendMailErrorEventArgs.cs
- SQLInt32Storage.cs
- Single.cs
- AbstractSvcMapFileLoader.cs
- LinearGradientBrush.cs
- SqlCacheDependency.cs
- ArrayWithOffset.cs
- DoWorkEventArgs.cs
- BinaryReader.cs
- ApplicationDirectoryMembershipCondition.cs
- Mapping.cs
- FindProgressChangedEventArgs.cs
- PartitionResolver.cs
- ConditionalWeakTable.cs
- CollectionChangedEventManager.cs
- ToolTipAutomationPeer.cs
- BodyGlyph.cs
- InvokeSchedule.cs
- XmlValueConverter.cs
- TextWriterEngine.cs
- SByteConverter.cs
- FormsAuthenticationModule.cs
- FileSystemWatcher.cs
- CurrentTimeZone.cs
- XmlMembersMapping.cs
- WizardPanel.cs
- AttributeTable.cs
- Tokenizer.cs
- RegexRunnerFactory.cs
- ValueQuery.cs
- PropertyChangedEventManager.cs
- EditingCommands.cs
- LowerCaseStringConverter.cs
- XmlCountingReader.cs
- BasicHttpMessageSecurityElement.cs
- HttpProfileBase.cs
- NameTable.cs
- ComplexBindingPropertiesAttribute.cs
- SinglePhaseEnlistment.cs
- DrawingVisual.cs
- CodeTryCatchFinallyStatement.cs
- Semaphore.cs
- WebBrowserNavigatingEventHandler.cs
- DiscoveryRequestHandler.cs
- PolyBezierSegmentFigureLogic.cs
- basecomparevalidator.cs
- DataGridViewUtilities.cs
- InlineCollection.cs
- SecurityChannelFactory.cs
- EntityDataSourceDataSelection.cs
- XmlWrappingReader.cs
- MetaForeignKeyColumn.cs