Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / SiteMapDataSourceView.cs / 1305376 / SiteMapDataSourceView.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.Web; using System.Web.UI; public class SiteMapDataSourceView : DataSourceView { private SiteMapNodeCollection _collection; private SiteMapDataSource _owner; public SiteMapDataSourceView(SiteMapDataSource owner, string name, SiteMapNode node) : base(owner, name) { _owner = owner; _collection = new SiteMapNodeCollection(node); } public SiteMapDataSourceView(SiteMapDataSource owner, string name, SiteMapNodeCollection collection) : base(owner, name) { _owner = owner; _collection = collection; } protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { arguments.RaiseUnsupportedCapabilitiesError(this); return _collection; } protected override void OnDataSourceViewChanged(EventArgs e) { _collection = _owner.GetPathNodeCollection(Name); base.OnDataSourceViewChanged(e); } public IEnumerable Select(DataSourceSelectArguments arguments) { return ExecuteSelect(arguments); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.Web; using System.Web.UI; public class SiteMapDataSourceView : DataSourceView { private SiteMapNodeCollection _collection; private SiteMapDataSource _owner; public SiteMapDataSourceView(SiteMapDataSource owner, string name, SiteMapNode node) : base(owner, name) { _owner = owner; _collection = new SiteMapNodeCollection(node); } public SiteMapDataSourceView(SiteMapDataSource owner, string name, SiteMapNodeCollection collection) : base(owner, name) { _owner = owner; _collection = collection; } protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { arguments.RaiseUnsupportedCapabilitiesError(this); return _collection; } protected override void OnDataSourceViewChanged(EventArgs e) { _collection = _owner.GetPathNodeCollection(Name); base.OnDataSourceViewChanged(e); } public IEnumerable Select(DataSourceSelectArguments arguments) { return ExecuteSelect(arguments); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RootDesignerSerializerAttribute.cs
- EntityTypeBase.cs
- ColumnMapProcessor.cs
- NetworkStream.cs
- CodeConstructor.cs
- Int64Storage.cs
- HierarchicalDataBoundControl.cs
- LayoutInformation.cs
- InstanceCreationEditor.cs
- InheritanceContextChangedEventManager.cs
- DomNameTable.cs
- CuspData.cs
- CollaborationHelperFunctions.cs
- InstanceLockQueryResult.cs
- TreeViewImageKeyConverter.cs
- ListControl.cs
- SqlMultiplexer.cs
- XmlnsDefinitionAttribute.cs
- RecognizeCompletedEventArgs.cs
- ZoneIdentityPermission.cs
- SmiMetaData.cs
- TypeConverter.cs
- CommandManager.cs
- MenuBase.cs
- DocumentViewerBaseAutomationPeer.cs
- ClientUtils.cs
- AddInIpcChannel.cs
- CompiledXpathExpr.cs
- HtmlEncodedRawTextWriter.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- OrderedParallelQuery.cs
- ToolStripPanelRow.cs
- SqlReorderer.cs
- PersonalizationStateQuery.cs
- StandardOleMarshalObject.cs
- CompilerCollection.cs
- X500Name.cs
- CompositeCollection.cs
- UIElementParaClient.cs
- MethodMessage.cs
- TypeInitializationException.cs
- VectorAnimationBase.cs
- Int32AnimationBase.cs
- Cursors.cs
- ConnectionPoint.cs
- XmlChildEnumerator.cs
- AsymmetricSignatureDeformatter.cs
- PackWebRequestFactory.cs
- Constraint.cs
- UInt16Storage.cs
- SafeFileHandle.cs
- DocumentsTrace.cs
- XmlNodeList.cs
- TemplatePagerField.cs
- DragEvent.cs
- HostProtectionPermission.cs
- StreamingContext.cs
- LinkedResourceCollection.cs
- DocumentViewerBase.cs
- UnsafeNetInfoNativeMethods.cs
- DllHostInitializer.cs
- ReadOnlyCollection.cs
- SimpleTypesSurrogate.cs
- EventSinkActivityDesigner.cs
- SchemaElement.cs
- DynamicResourceExtensionConverter.cs
- ExceptionUtil.cs
- WsdlParser.cs
- BaseTypeViewSchema.cs
- Geometry3D.cs
- TextEditorParagraphs.cs
- AnnouncementInnerClient11.cs
- OpCopier.cs
- NativeMethods.cs
- XmlHierarchicalEnumerable.cs
- StoreAnnotationsMap.cs
- OAVariantLib.cs
- SingleObjectCollection.cs
- ObjectQueryProvider.cs
- TypeInfo.cs
- EffectiveValueEntry.cs
- FontWeightConverter.cs
- StructuredCompositeActivityDesigner.cs
- EasingFunctionBase.cs
- Socket.cs
- LocalFileSettingsProvider.cs
- PersonalizationStateInfoCollection.cs
- BrushMappingModeValidation.cs
- LinkButton.cs
- GreenMethods.cs
- ExtractedStateEntry.cs
- TypeTypeConverter.cs
- BookmarkEventArgs.cs
- DescriptionAttribute.cs
- TrackingSection.cs
- Queue.cs
- CoreSwitches.cs
- _HTTPDateParse.cs
- GorillaCodec.cs
- GenericAuthenticationEventArgs.cs