Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. //------------------------------------------------------------------------------ //// 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
- CompilerCollection.cs
- AnchoredBlock.cs
- ExceptionWrapper.cs
- HTTPNotFoundHandler.cs
- Binding.cs
- BitmapEffectDrawing.cs
- ModuleElement.cs
- ContainerControl.cs
- BufferModeSettings.cs
- BuildProvider.cs
- WebPartUtil.cs
- TextTreeInsertElementUndoUnit.cs
- IRCollection.cs
- WebServiceTypeData.cs
- _AutoWebProxyScriptWrapper.cs
- ExpiredSecurityTokenException.cs
- AnimationException.cs
- FatalException.cs
- SimpleMailWebEventProvider.cs
- ElapsedEventArgs.cs
- StartUpEventArgs.cs
- WebBodyFormatMessageProperty.cs
- SimplePropertyEntry.cs
- SqlDataSourceView.cs
- TransactedBatchingBehavior.cs
- SqlProfileProvider.cs
- OdbcUtils.cs
- Vector3DAnimation.cs
- CodeDelegateCreateExpression.cs
- RenderCapability.cs
- NetworkInformationPermission.cs
- StringBlob.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- Registry.cs
- PerfCounters.cs
- SafeProcessHandle.cs
- SQLGuid.cs
- MiniMapControl.xaml.cs
- NoClickablePointException.cs
- ReturnType.cs
- Size3D.cs
- ComboBox.cs
- LinkLabelLinkClickedEvent.cs
- UnknownBitmapDecoder.cs
- SHA256Managed.cs
- ProviderConnectionPoint.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- CommandPlan.cs
- XamlPathDataSerializer.cs
- NamedPipeDuplicateContext.cs
- input.cs
- ModuleElement.cs
- DataTrigger.cs
- HtmlShimManager.cs
- OciHandle.cs
- RemotingConfigParser.cs
- CodeNamespaceCollection.cs
- SafeNativeMethods.cs
- ConfigurationManagerInternalFactory.cs
- BufferModesCollection.cs
- log.cs
- AuthenticationServiceManager.cs
- validationstate.cs
- DefaultBinder.cs
- CriticalFinalizerObject.cs
- WebPartEditVerb.cs
- Viewport3DVisual.cs
- FontSourceCollection.cs
- LOSFormatter.cs
- SettingsAttributeDictionary.cs
- XmlSerializationReader.cs
- XPathEmptyIterator.cs
- AtomMaterializerLog.cs
- RenderTargetBitmap.cs
- SHA256Managed.cs
- TableCellCollection.cs
- CodeTypeReferenceExpression.cs
- ControlPropertyNameConverter.cs
- MemoryFailPoint.cs
- SystemParameters.cs
- KeyValueSerializer.cs
- HTMLTagNameToTypeMapper.cs
- SQLConvert.cs
- AssemblyBuilder.cs
- XmlRootAttribute.cs
- TableCell.cs
- ConfigurationSectionGroup.cs
- XmlSchemaAttributeGroup.cs
- Vector3D.cs
- BitmapCodecInfo.cs
- ConstructorBuilder.cs
- Simplifier.cs
- CacheChildrenQuery.cs
- CodeMemberMethod.cs
- ServiceDescriptionImporter.cs
- HttpHandlerAction.cs
- StorageModelBuildProvider.cs
- TCEAdapterGenerator.cs
- IsolatedStorageException.cs
- ConsoleKeyInfo.cs