Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- PagedDataSource.cs
- CodeMethodInvokeExpression.cs
- PerformanceCountersElement.cs
- SynchronizedCollection.cs
- AutoGeneratedFieldProperties.cs
- DigestTraceRecordHelper.cs
- Inflater.cs
- BulletChrome.cs
- ExtensionQuery.cs
- basevalidator.cs
- securitycriticaldataformultiplegetandset.cs
- UpDownEvent.cs
- NegationPusher.cs
- SqlDataSourceCommandEventArgs.cs
- DataGridViewElement.cs
- IRCollection.cs
- MessageQueuePermissionAttribute.cs
- ReaderWriterLockWrapper.cs
- RequiredFieldValidator.cs
- ReadOnlyMetadataCollection.cs
- AddInStore.cs
- BitmapMetadataBlob.cs
- PointCollectionConverter.cs
- BamlRecords.cs
- WebSysDisplayNameAttribute.cs
- DefaultTraceListener.cs
- TextUtf8RawTextWriter.cs
- Buffer.cs
- SmiContext.cs
- PasswordTextNavigator.cs
- ObjectDataSourceMethodEventArgs.cs
- WindowsScrollBar.cs
- ThicknessAnimationBase.cs
- Peer.cs
- ReflectionUtil.cs
- Timer.cs
- ParseNumbers.cs
- CellRelation.cs
- TextDecorationUnitValidation.cs
- ReflectEventDescriptor.cs
- ClassImporter.cs
- SizeAnimationUsingKeyFrames.cs
- XmlKeywords.cs
- OdbcInfoMessageEvent.cs
- FormatConvertedBitmap.cs
- ProcessProtocolHandler.cs
- FormsAuthentication.cs
- ConsumerConnectionPoint.cs
- OracleEncoding.cs
- XmlSerializer.cs
- VectorAnimationUsingKeyFrames.cs
- InstanceDataCollection.cs
- KnownTypeAttribute.cs
- InputReport.cs
- documentation.cs
- SystemIPv6InterfaceProperties.cs
- ExtenderProviderService.cs
- TextRunProperties.cs
- SettingsBindableAttribute.cs
- DataGridViewComboBoxCell.cs
- ApplicationSecurityInfo.cs
- IntSecurity.cs
- AttachmentCollection.cs
- FontConverter.cs
- EnumBuilder.cs
- PublisherIdentityPermission.cs
- RoleBoolean.cs
- WindowsTooltip.cs
- SynchronizedDispatch.cs
- ServiceDescription.cs
- WebControl.cs
- ZoneLinkButton.cs
- HostedElements.cs
- WebPartDisplayMode.cs
- DataGridViewSelectedRowCollection.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ColumnMapProcessor.cs
- ActiveDocumentEvent.cs
- RecognitionResult.cs
- IResourceProvider.cs
- TemplatedEditableDesignerRegion.cs
- PersistenceTypeAttribute.cs
- SiteOfOriginPart.cs
- ConnectionPoint.cs
- WizardPanel.cs
- RecognizerBase.cs
- FixedSOMPageElement.cs
- ZoneButton.cs
- DeclaredTypeElement.cs
- TraceLog.cs
- XmlSerializerVersionAttribute.cs
- RuleSettings.cs
- SiteMapNodeItemEventArgs.cs
- SafeProcessHandle.cs
- MethodCallConverter.cs
- DrawingServices.cs
- TranslateTransform3D.cs
- HtmlControl.cs
- ColorAnimationBase.cs
- ArraySegment.cs