Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SystemParameters.cs
- DataGridViewComboBoxCell.cs
- XDRSchema.cs
- WindowsNonControl.cs
- CodeObject.cs
- WebEvents.cs
- SizeAnimationBase.cs
- SimpleMailWebEventProvider.cs
- LambdaCompiler.Lambda.cs
- ImportedPolicyConversionContext.cs
- IdleTimeoutMonitor.cs
- GlobalProxySelection.cs
- XmlReflectionMember.cs
- DbMetaDataColumnNames.cs
- ConstructorArgumentAttribute.cs
- RegexTree.cs
- UriExt.cs
- ScriptRegistrationManager.cs
- MultilineStringConverter.cs
- MsmqIntegrationOutputChannel.cs
- ImageIndexEditor.cs
- UniqueID.cs
- DependencyProperty.cs
- AVElementHelper.cs
- RepeatBehavior.cs
- CachedRequestParams.cs
- ConfigXmlComment.cs
- DynamicRendererThreadManager.cs
- StringUtil.cs
- SqlStatistics.cs
- RbTree.cs
- BufferedOutputStream.cs
- SqlDataAdapter.cs
- DataListItemCollection.cs
- FloatUtil.cs
- SignatureToken.cs
- ReflectionServiceProvider.cs
- ServiceHostingEnvironmentSection.cs
- TextParagraphView.cs
- Reference.cs
- WebPartZoneBase.cs
- PersistChildrenAttribute.cs
- ApplicationException.cs
- ConfigXmlComment.cs
- MergablePropertyAttribute.cs
- MemberAssignmentAnalysis.cs
- TemplateKeyConverter.cs
- RecordManager.cs
- WebReferencesBuildProvider.cs
- ExcCanonicalXml.cs
- ServiceErrorHandler.cs
- ToolStripItemTextRenderEventArgs.cs
- Mappings.cs
- ForEachAction.cs
- CodePageEncoding.cs
- ContextMenuAutomationPeer.cs
- KnownTypeHelper.cs
- FontFaceLayoutInfo.cs
- PropertyMapper.cs
- PropertyStore.cs
- AdPostCacheSubstitution.cs
- DetailsViewRowCollection.cs
- ISAPIApplicationHost.cs
- HwndHost.cs
- EnvironmentPermission.cs
- ListBindableAttribute.cs
- HMACSHA256.cs
- StringConverter.cs
- ServiceModelDictionary.cs
- SchemaMerger.cs
- SecurityCriticalDataForSet.cs
- SQLInt16Storage.cs
- SqlEnums.cs
- MetadataItemCollectionFactory.cs
- WindowsListViewSubItem.cs
- DataGridViewCheckBoxCell.cs
- PaginationProgressEventArgs.cs
- StatusStrip.cs
- DataControlFieldsEditor.cs
- TextureBrush.cs
- OleDbCommand.cs
- PersistenceProviderDirectory.cs
- CollectionsUtil.cs
- CacheHelper.cs
- WinEventQueueItem.cs
- WorkItem.cs
- VectorKeyFrameCollection.cs
- QueryOutputWriterV1.cs
- SqlMetaData.cs
- WindowsStatusBar.cs
- WindowsTooltip.cs
- MethodToken.cs
- PropertyEntry.cs
- DataRecordInfo.cs
- TcpSocketManager.cs
- Types.cs
- OdbcHandle.cs
- EventPrivateKey.cs
- Events.cs
- GridLength.cs