Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Triplet.cs
- BoundsDrawingContextWalker.cs
- CompiledQuery.cs
- ResourceDictionary.cs
- UrlEncodedParameterWriter.cs
- ListDesigner.cs
- PointConverter.cs
- ProxyHelper.cs
- X509ChainPolicy.cs
- ProgressBarRenderer.cs
- UserControl.cs
- FrameworkElementFactoryMarkupObject.cs
- AuthenticationService.cs
- XmlBinaryReader.cs
- ToolStripLocationCancelEventArgs.cs
- HandlerBase.cs
- ServicePointManagerElement.cs
- WorkflowServiceHost.cs
- Int16AnimationBase.cs
- Identifier.cs
- BindingGroup.cs
- Adorner.cs
- ActivityXRefConverter.cs
- BinaryReader.cs
- DispatcherFrame.cs
- VisualStyleInformation.cs
- SpeakProgressEventArgs.cs
- PropertyInformationCollection.cs
- BridgeDataRecord.cs
- DbBuffer.cs
- InvokeHandlers.cs
- ByValueEqualityComparer.cs
- TablePatternIdentifiers.cs
- SqlVisitor.cs
- XomlCompilerParameters.cs
- ConfigurationManagerHelper.cs
- FullTextLine.cs
- OSEnvironmentHelper.cs
- AnnotationHelper.cs
- Grant.cs
- SqlSupersetValidator.cs
- XmlCharType.cs
- SmiEventSink_Default.cs
- AngleUtil.cs
- DbDeleteCommandTree.cs
- Intellisense.cs
- PageContentCollection.cs
- ClientTarget.cs
- WebPartConnectionsCancelVerb.cs
- MessageSmuggler.cs
- Task.cs
- MultiBindingExpression.cs
- EntityDataSourceMemberPath.cs
- BamlVersionHeader.cs
- MethodBuilderInstantiation.cs
- InlinedAggregationOperatorEnumerator.cs
- DPAPIProtectedConfigurationProvider.cs
- IisTraceWebEventProvider.cs
- SerialPort.cs
- TouchPoint.cs
- DataSourceConverter.cs
- AssemblySettingAttributes.cs
- LogRecordSequence.cs
- Span.cs
- Base64Encoder.cs
- IIS7UserPrincipal.cs
- TcpAppDomainProtocolHandler.cs
- Container.cs
- NullableFloatSumAggregationOperator.cs
- MaskedTextProvider.cs
- HostSecurityManager.cs
- BlockExpression.cs
- AcceleratedTokenProvider.cs
- ParenthesizePropertyNameAttribute.cs
- StrongNameUtility.cs
- StringComparer.cs
- User.cs
- HtmlTableRowCollection.cs
- XamlPoint3DCollectionSerializer.cs
- RemotingServices.cs
- Boolean.cs
- ScriptResourceHandler.cs
- OrderPreservingPipeliningSpoolingTask.cs
- InstanceCollisionException.cs
- TextDecorationCollectionConverter.cs
- M3DUtil.cs
- ToolboxDataAttribute.cs
- CngKeyCreationParameters.cs
- BuildTopDownAttribute.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- WeakEventTable.cs
- DetailsViewRowCollection.cs
- XmlSerializerSection.cs
- SharedTcpTransportManager.cs
- DocumentOrderComparer.cs
- AddingNewEventArgs.cs
- MdImport.cs
- TablePattern.cs
- listitem.cs
- Menu.cs