Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UTF7Encoding.cs
- AnnotationDocumentPaginator.cs
- HttpModule.cs
- QuaternionRotation3D.cs
- FixUpCollection.cs
- ToolConsole.cs
- PointF.cs
- ProviderUtil.cs
- DocumentPropertiesDialog.cs
- Baml6ConstructorInfo.cs
- Menu.cs
- CustomErrorsSection.cs
- UInt64Converter.cs
- PageStatePersister.cs
- Light.cs
- DirectionalLight.cs
- ScrollProviderWrapper.cs
- SslStreamSecurityBindingElement.cs
- DataViewManager.cs
- XmlElementAttributes.cs
- CallbackValidatorAttribute.cs
- Vector3dCollection.cs
- Page.cs
- SymbolType.cs
- DSACryptoServiceProvider.cs
- SchemaImporterExtensionElementCollection.cs
- XsdDuration.cs
- Interlocked.cs
- RecommendedAsConfigurableAttribute.cs
- MSAAWinEventWrap.cs
- DynamicPropertyHolder.cs
- WebPartZoneBase.cs
- TransportOutputChannel.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- OrderedDictionary.cs
- QilInvoke.cs
- ApplicationId.cs
- _ListenerAsyncResult.cs
- HelpEvent.cs
- TitleStyle.cs
- loginstatus.cs
- SynchronizationHandlesCodeDomSerializer.cs
- CopyNodeSetAction.cs
- ActivationArguments.cs
- ColumnHeaderCollectionEditor.cs
- XmlnsPrefixAttribute.cs
- XmlAutoDetectWriter.cs
- SessionStateSection.cs
- CommonObjectSecurity.cs
- TimeoutException.cs
- SystemColors.cs
- ObjectStorage.cs
- AnnotationHelper.cs
- DataGridViewColumnConverter.cs
- HtmlEmptyTagControlBuilder.cs
- ReadOnlyDataSource.cs
- BamlRecordWriter.cs
- XmlTextEncoder.cs
- MemberInfoSerializationHolder.cs
- FontFamilyValueSerializer.cs
- SudsWriter.cs
- InputLangChangeEvent.cs
- SplayTreeNode.cs
- SettingsAttributeDictionary.cs
- NativeMethods.cs
- EarlyBoundInfo.cs
- DataGridViewComboBoxEditingControl.cs
- EncodingTable.cs
- Button.cs
- CursorConverter.cs
- ColorMatrix.cs
- StateMachineSubscriptionManager.cs
- SimpleTypeResolver.cs
- AccessDataSource.cs
- XmlSchemaFacet.cs
- KeyNotFoundException.cs
- Queue.cs
- File.cs
- DetailsViewModeEventArgs.cs
- LogicalExpressionEditor.cs
- DataColumnMappingCollection.cs
- TextRangeProviderWrapper.cs
- FixedSOMGroup.cs
- DesigntimeLicenseContext.cs
- InvalidEnumArgumentException.cs
- TextControl.cs
- FormParameter.cs
- ImageListImage.cs
- Panel.cs
- FrameworkElementAutomationPeer.cs
- CompiledRegexRunner.cs
- CheckBox.cs
- ControlCachePolicy.cs
- CuspData.cs
- SchemaElement.cs
- ReceiveParametersContent.cs
- StatusStrip.cs
- MenuEventArgs.cs
- FixedSOMElement.cs
- ApplicationBuildProvider.cs