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
- ObjectSelectorEditor.cs
- SrgsNameValueTag.cs
- StorageScalarPropertyMapping.cs
- ScriptControl.cs
- UniqueEventHelper.cs
- Permission.cs
- HttpHandlersSection.cs
- SessionStateContainer.cs
- RemoveFromCollection.cs
- TextCompositionEventArgs.cs
- FirstQueryOperator.cs
- Win32MouseDevice.cs
- WebConfigurationFileMap.cs
- ControlParameter.cs
- FunctionDetailsReader.cs
- IgnoreFlushAndCloseStream.cs
- StringUtil.cs
- WebPartCollection.cs
- TreeNodeStyleCollection.cs
- LinearGradientBrush.cs
- XmlnsPrefixAttribute.cs
- InternalConfigEventArgs.cs
- OptimisticConcurrencyException.cs
- ContractListAdapter.cs
- SerializationHelper.cs
- CodeTypeParameter.cs
- ExpressionSelection.cs
- ComboBox.cs
- PreProcessor.cs
- QilNode.cs
- QueueException.cs
- Thread.cs
- ProxyGenerationError.cs
- WebEvents.cs
- RedistVersionInfo.cs
- DataSysAttribute.cs
- AttachmentService.cs
- AsymmetricKeyExchangeFormatter.cs
- UserControlCodeDomTreeGenerator.cs
- DocumentXPathNavigator.cs
- Int16Converter.cs
- StrongNameMembershipCondition.cs
- MsmqEncryptionAlgorithm.cs
- TextWriter.cs
- X509Certificate2.cs
- LocalizationParserHooks.cs
- SessionStateUtil.cs
- ProvideValueServiceProvider.cs
- PackageFilter.cs
- DataContractSerializerOperationFormatter.cs
- EditorZone.cs
- SupportsEventValidationAttribute.cs
- Command.cs
- ObjectDataSourceWizardForm.cs
- QueryStatement.cs
- GenericAuthenticationEventArgs.cs
- DesignTimeTemplateParser.cs
- ReliabilityContractAttribute.cs
- BaseDataList.cs
- AddValidationError.cs
- NetworkStream.cs
- TableLayoutStyle.cs
- DecoderBestFitFallback.cs
- DrawingContextWalker.cs
- HttpPostClientProtocol.cs
- Shape.cs
- WsatTransactionInfo.cs
- HierarchicalDataSourceDesigner.cs
- DataRow.cs
- KernelTypeValidation.cs
- DataGridViewControlCollection.cs
- ToolStripAdornerWindowService.cs
- MsmqReceiveHelper.cs
- UIElementParagraph.cs
- RotateTransform3D.cs
- SmiMetaData.cs
- Style.cs
- SystemNetHelpers.cs
- ResourceAssociationType.cs
- SerializationEventsCache.cs
- DataReaderContainer.cs
- Composition.cs
- Viewport3DVisual.cs
- UrlMapping.cs
- FileDialogPermission.cs
- TypeViewSchema.cs
- RightsManagementInformation.cs
- Effect.cs
- IdleTimeoutMonitor.cs
- ToolStripItemDesigner.cs
- _ShellExpression.cs
- ExpandCollapseProviderWrapper.cs
- XsdDuration.cs
- SoapExtensionTypeElement.cs
- ColumnHeaderConverter.cs
- StatusBarPanelClickEvent.cs
- Overlapped.cs
- Section.cs
- recordstatescratchpad.cs
- SafeFileMappingHandle.cs