Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / Epm / EpmTargetPathSegment.cs / 1305376 / EpmTargetPathSegment.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Type describing each node in the EpmTargetTree generated using // EntityPropertyMappingAttributes for a ResourceType. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Common { using System.Diagnostics; using System.Collections.Generic; ////// Representation of each node in the [DebuggerDisplay("EpmTargetPathSegment {SegmentName} HasContent={HasContent}")] internal class EpmTargetPathSegment { #region Private fields. ////// Name of the xml element/attribute private String segmentName; ///URI of the namespace to which the private String segmentNamespaceUri; ///belongs Prefix to be used in xml document for private String segmentNamespacePrefix; ///If this is a non-leaf element, the child elements/attributes collection private ListsubSegments; /// Parent element of this element/attribute private EpmTargetPathSegment parentSegment; #endregion Private fields. ////// Constructor initializes the list of sub-nodes to be empty, used for creating root nodes /// in the internal EpmTargetPathSegment() { this.subSegments = new List/// (); } /// Used for creating non-root nodes in the syndication/custom trees /// Name of xml element/attribute /// URI of the namespace for/// Namespace prefix to be used for /// Reference to the parent node if this is a sub-node, useful for traversals in visitors internal EpmTargetPathSegment(String segmentName, String segmentNamespaceUri, String segmentNamespacePrefix, EpmTargetPathSegment parentSegment) : this() { this.segmentName = segmentName; this.segmentNamespaceUri = segmentNamespaceUri; this.segmentNamespacePrefix = segmentNamespacePrefix; this.parentSegment = parentSegment; } /// Name of the xml element/attribute internal String SegmentName { get { return this.segmentName; } } ///URI of the namespace to which the internal String SegmentNamespaceUri { get { return this.segmentNamespaceUri; } } ///belongs Prefix to be used in xml document for internal String SegmentNamespacePrefix { get { return this.segmentNamespacePrefix; } } ///EntityPropertyMappingInfo corresponding to current segement internal EntityPropertyMappingInfo EpmInfo { get; set; } ///Whether this node corresponds to ResourceType or ClientType property values internal bool HasContent { get { return this.EpmInfo != null; } } ///Does this node correspond to xml attribute internal bool IsAttribute { get { return this.SegmentName[0] == '@'; } } ///Parent node in the tree (always an element if present) internal EpmTargetPathSegment ParentSegment { get { return this.parentSegment; } } ///Sub-nodes of this node. Only exist if current node is an element node internal ListSubSegments { get { return this.subSegments; } } } } // 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
- Triplet.cs
- InlinedAggregationOperator.cs
- SpotLight.cs
- VBIdentifierNameEditor.cs
- DataGridSortCommandEventArgs.cs
- ItemCollectionEditor.cs
- ExceptionUtil.cs
- InlineObject.cs
- KeyTime.cs
- DataTableReaderListener.cs
- BindingList.cs
- TextSelection.cs
- RoutedEventHandlerInfo.cs
- ServiceDescription.cs
- CornerRadiusConverter.cs
- DynamicDataManager.cs
- XsltFunctions.cs
- BinaryMethodMessage.cs
- ADConnectionHelper.cs
- LinkClickEvent.cs
- XmlDictionary.cs
- TextServicesProperty.cs
- ObjectItemLoadingSessionData.cs
- Crypto.cs
- SignedPkcs7.cs
- UInt64Storage.cs
- RelatedCurrencyManager.cs
- DuplicateContext.cs
- JoinCqlBlock.cs
- OperationAbortedException.cs
- ComponentEvent.cs
- DataGridPageChangedEventArgs.cs
- FormView.cs
- PreDigestedSignedInfo.cs
- MachineKeyValidationConverter.cs
- ByteStreamGeometryContext.cs
- ClickablePoint.cs
- Columns.cs
- ExpressionBuilderCollection.cs
- AppliedDeviceFiltersEditor.cs
- GregorianCalendar.cs
- Int64Storage.cs
- GetPageCompletedEventArgs.cs
- SizeIndependentAnimationStorage.cs
- VersionedStream.cs
- ErrorWrapper.cs
- ListSourceHelper.cs
- ComponentResourceKeyConverter.cs
- InkCanvasInnerCanvas.cs
- AnonymousIdentificationSection.cs
- NavigationProperty.cs
- Wizard.cs
- AppSettingsExpressionEditor.cs
- DataControlFieldCell.cs
- EventProvider.cs
- TextFindEngine.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- _UncName.cs
- Tile.cs
- PathTooLongException.cs
- ParameterBuilder.cs
- HttpRuntime.cs
- EtwTrackingBehavior.cs
- RowBinding.cs
- XamlTemplateSerializer.cs
- SecurityPolicySection.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- CompilerScope.cs
- X509Certificate.cs
- UrlUtility.cs
- Barrier.cs
- QueryStringConverter.cs
- DebugInfoGenerator.cs
- DataControlField.cs
- CalendarSelectionChangedEventArgs.cs
- XAMLParseException.cs
- DataGridViewCellValidatingEventArgs.cs
- UpDownEvent.cs
- DBSchemaRow.cs
- FixedStringLookup.cs
- RequiredFieldValidator.cs
- AppDomainShutdownMonitor.cs
- NativeRightsManagementAPIsStructures.cs
- HTTPNotFoundHandler.cs
- TargetInvocationException.cs
- GetPageCompletedEventArgs.cs
- _NativeSSPI.cs
- DefaultTextStore.cs
- BuildProvidersCompiler.cs
- DataKey.cs
- DragDeltaEventArgs.cs
- FieldNameLookup.cs
- AsyncMethodInvoker.cs
- TextBox.cs
- ProfessionalColorTable.cs
- SafeEventHandle.cs
- WebPartDisplayMode.cs
- CommonObjectSecurity.cs
- DataTemplateSelector.cs
- SessionStateContainer.cs