Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebControls / SiteMapDataSourceView.cs / 1 / SiteMapDataSourceView.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.Security.Permissions; using System.Web; using System.Web.UI; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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.Security.Permissions; using System.Web; using System.Web.UI; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- tabpagecollectioneditor.cs
- DispatcherSynchronizationContext.cs
- UseLicense.cs
- SlotInfo.cs
- DPTypeDescriptorContext.cs
- DataRelation.cs
- EmptyStringExpandableObjectConverter.cs
- QilDataSource.cs
- BoolExpression.cs
- UriScheme.cs
- InputScopeManager.cs
- PartialCachingAttribute.cs
- RoleGroupCollection.cs
- ColorEditor.cs
- MembershipPasswordException.cs
- ACE.cs
- ToolStripHighContrastRenderer.cs
- SettingsSection.cs
- IxmlLineInfo.cs
- ProtocolsConfiguration.cs
- DataBindEngine.cs
- MimeBasePart.cs
- BulletChrome.cs
- Queue.cs
- DataBoundControlAdapter.cs
- BounceEase.cs
- ExpandCollapseProviderWrapper.cs
- UInt64Converter.cs
- SafeEventLogWriteHandle.cs
- SkewTransform.cs
- FixedSOMPageConstructor.cs
- ProfilePropertySettingsCollection.cs
- XmlDocumentType.cs
- ReferencedCollectionType.cs
- SqlCacheDependency.cs
- Internal.cs
- CodeSnippetStatement.cs
- GeneralTransform3DTo2D.cs
- unsafeIndexingFilterStream.cs
- httpstaticobjectscollection.cs
- WmlPhoneCallAdapter.cs
- ExceptionHelpers.cs
- xsdvalidator.cs
- DbProviderFactory.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- Splitter.cs
- WebScriptServiceHost.cs
- XmlAtomicValue.cs
- QualifiedCellIdBoolean.cs
- StorageMappingItemCollection.cs
- ConnectionsZoneDesigner.cs
- MissingMemberException.cs
- GeneralTransform3DGroup.cs
- AutomationElement.cs
- TableProviderWrapper.cs
- PrimitiveRenderer.cs
- _FtpDataStream.cs
- CodeArrayIndexerExpression.cs
- NavigationPropertyEmitter.cs
- ClientScriptManagerWrapper.cs
- GiveFeedbackEvent.cs
- GridViewHeaderRowPresenter.cs
- EllipseGeometry.cs
- DataGridViewColumnHeaderCell.cs
- IPipelineRuntime.cs
- Html32TextWriter.cs
- QueryPageSettingsEventArgs.cs
- DodSequenceMerge.cs
- TreeNodeStyle.cs
- DES.cs
- XmlAnyAttributeAttribute.cs
- WebBrowserProgressChangedEventHandler.cs
- BindingFormattingDialog.cs
- ThreadAttributes.cs
- DataControlField.cs
- NativeActivityAbortContext.cs
- XmlSchemaFacet.cs
- EventLogPermissionAttribute.cs
- BinaryFormatter.cs
- MSAANativeProvider.cs
- InputReport.cs
- DynamicValidatorEventArgs.cs
- BamlLocalizationDictionary.cs
- PageAsyncTaskManager.cs
- TextRangeSerialization.cs
- BuildDependencySet.cs
- AssertFilter.cs
- COM2Properties.cs
- FixedSOMContainer.cs
- ProfilePropertyNameValidator.cs
- WebPartManager.cs
- ElementMarkupObject.cs
- MsmqAuthenticationMode.cs
- TimeoutHelper.cs
- CompilerCollection.cs
- ProfileManager.cs
- TextBlockAutomationPeer.cs
- RegexReplacement.cs
- MultipleViewProviderWrapper.cs
- BufferedReadStream.cs