Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / ExpandSegmentCollection.cs / 1407647 / ExpandSegmentCollection.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Provides a description of a path in an $expand query option
// for a WCF Data Service.
//
//
// @owner [....]
//---------------------------------------------------------------------
namespace System.Data.Services
{
using System.Collections.Generic;
///
/// Provides a description of a path in an $expand query option
/// for a WCF Data Service.
///
public class ExpandSegmentCollection : List
{
/// Initializes a new instance.
public ExpandSegmentCollection()
{
}
/// Initializes a new instance.
/// Initial capacity.
public ExpandSegmentCollection(int capacity) : base(capacity)
{
}
/// Whether this path has any filters.
public bool HasFilter
{
get
{
foreach (ExpandSegment segment in this)
{
if (segment.HasFilter)
{
return true;
}
}
return false;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Provides a description of a path in an $expand query option
// for a WCF Data Service.
//
//
// @owner [....]
//---------------------------------------------------------------------
namespace System.Data.Services
{
using System.Collections.Generic;
///
/// Provides a description of a path in an $expand query option
/// for a WCF Data Service.
///
public class ExpandSegmentCollection : List
{
/// Initializes a new instance.
public ExpandSegmentCollection()
{
}
/// Initializes a new instance.
/// Initial capacity.
public ExpandSegmentCollection(int capacity) : base(capacity)
{
}
/// Whether this path has any filters.
public bool HasFilter
{
get
{
foreach (ExpandSegment segment in this)
{
if (segment.HasFilter)
{
return true;
}
}
return false;
}
}
}
}
// 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
- XmlSchemaSet.cs
- SystemFonts.cs
- TdsParserSafeHandles.cs
- QueryStringHandler.cs
- SecurityTokenProviderContainer.cs
- InvalidCommandTreeException.cs
- DomNameTable.cs
- ShapeTypeface.cs
- XPathException.cs
- RequestUriProcessor.cs
- EntityViewGenerator.cs
- ServicesExceptionNotHandledEventArgs.cs
- NavigationProperty.cs
- InkSerializer.cs
- AmbientValueAttribute.cs
- StylusPointCollection.cs
- WebPartRestoreVerb.cs
- FragmentQueryProcessor.cs
- DataSpaceManager.cs
- StringUtil.cs
- AmbiguousMatchException.cs
- BindMarkupExtensionSerializer.cs
- UrlMappingsSection.cs
- ExternalCalls.cs
- TextServicesCompartmentContext.cs
- LabelDesigner.cs
- ComboBoxItem.cs
- UserCancellationException.cs
- DragDrop.cs
- CounterCreationDataCollection.cs
- ParseElementCollection.cs
- DefaultBindingPropertyAttribute.cs
- RowUpdatingEventArgs.cs
- DataSourceListEditor.cs
- OneToOneMappingSerializer.cs
- GeneralTransformGroup.cs
- BaseComponentEditor.cs
- UIElementAutomationPeer.cs
- ExceptionNotification.cs
- PersonalizationProviderCollection.cs
- SystemResourceKey.cs
- NameValuePair.cs
- Component.cs
- TimersDescriptionAttribute.cs
- ellipse.cs
- DataBindingCollection.cs
- ToolBar.cs
- Brush.cs
- InputDevice.cs
- DbProviderFactories.cs
- AdRotator.cs
- DataGridViewSortCompareEventArgs.cs
- NavigationWindowAutomationPeer.cs
- CellTreeNode.cs
- OracleNumber.cs
- ResourceReferenceExpressionConverter.cs
- XmlSchema.cs
- ProviderSettingsCollection.cs
- X509Certificate.cs
- ProtocolsConfigurationHandler.cs
- DataGridViewTopRowAccessibleObject.cs
- NavigationExpr.cs
- HttpMethodAttribute.cs
- RequestReplyCorrelator.cs
- ConstantExpression.cs
- KeyInterop.cs
- EntityProxyFactory.cs
- CheckBoxBaseAdapter.cs
- RemoteWebConfigurationHost.cs
- CalendarDay.cs
- EventProperty.cs
- AdornerLayer.cs
- ConnectorRouter.cs
- XmlToDatasetMap.cs
- PathData.cs
- SmtpLoginAuthenticationModule.cs
- DependsOnAttribute.cs
- XmlNullResolver.cs
- ToolBarButtonClickEvent.cs
- XmlParserContext.cs
- HttpPostedFile.cs
- Semaphore.cs
- WebPartCatalogCloseVerb.cs
- Int64Storage.cs
- ClientRuntimeConfig.cs
- DecimalAnimation.cs
- DirectoryInfo.cs
- RotationValidation.cs
- AssemblyInfo.cs
- DBPropSet.cs
- TypedAsyncResult.cs
- SqlDataSource.cs
- HtmlTable.cs
- NameSpaceEvent.cs
- ReceiveSecurityHeaderElementManager.cs
- MobileUserControlDesigner.cs
- RuleSettingsCollection.cs
- EmptyReadOnlyDictionaryInternal.cs
- PersistenceMetadataNamespace.cs
- DependencyPropertyHelper.cs