Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / SiteMapNodeItem.cs / 1305376 / SiteMapNodeItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Web.UI; ////// [ ToolboxItem(false) ] public class SiteMapNodeItem : WebControl, INamingContainer, IDataItemContainer { private int _itemIndex; private SiteMapNodeItemType _itemType; private SiteMapNode _siteMapNode; ///Represents a ////// public SiteMapNodeItem(int itemIndex, SiteMapNodeItemType itemType) { this._itemIndex = itemIndex; this._itemType = itemType; } ///Initializes a new instance of the ///class. /// public virtual SiteMapNode SiteMapNode { get { return _siteMapNode; } set { _siteMapNode = value; } } ///Represents a sitemapnode. ////// public virtual int ItemIndex { get { return _itemIndex; } } ///Indicates the index of the item. This property is read-only. ////// public virtual SiteMapNodeItemType ItemType { get { return _itemType; } } ///Indicates the type of the item in the ///. /// /// protected internal virtual void SetItemType(SiteMapNodeItemType itemType) { this._itemType = itemType; } ///object IDataItemContainer.DataItem { get { return SiteMapNode; } } int IDataItemContainer.DataItemIndex { get { return ItemIndex; } } int IDataItemContainer.DisplayIndex { get { return ItemIndex; } } } } // 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; using System.ComponentModel; using System.Web.UI; ////// [ ToolboxItem(false) ] public class SiteMapNodeItem : WebControl, INamingContainer, IDataItemContainer { private int _itemIndex; private SiteMapNodeItemType _itemType; private SiteMapNode _siteMapNode; ///Represents a ////// public SiteMapNodeItem(int itemIndex, SiteMapNodeItemType itemType) { this._itemIndex = itemIndex; this._itemType = itemType; } ///Initializes a new instance of the ///class. /// public virtual SiteMapNode SiteMapNode { get { return _siteMapNode; } set { _siteMapNode = value; } } ///Represents a sitemapnode. ////// public virtual int ItemIndex { get { return _itemIndex; } } ///Indicates the index of the item. This property is read-only. ////// public virtual SiteMapNodeItemType ItemType { get { return _itemType; } } ///Indicates the type of the item in the ///. /// /// protected internal virtual void SetItemType(SiteMapNodeItemType itemType) { this._itemType = itemType; } ///object IDataItemContainer.DataItem { get { return SiteMapNode; } } int IDataItemContainer.DataItemIndex { get { return ItemIndex; } } int IDataItemContainer.DisplayIndex { get { return ItemIndex; } } } } // 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
- RoleService.cs
- LinqDataSource.cs
- WebPartZoneAutoFormat.cs
- BoolExpressionVisitors.cs
- SiteMapDataSource.cs
- InternalResources.cs
- GridViewDeletedEventArgs.cs
- IndexObject.cs
- LoadedEvent.cs
- List.cs
- SettingsContext.cs
- LayoutDump.cs
- ListView.cs
- MessageDecoder.cs
- MemoryFailPoint.cs
- WmiInstallComponent.cs
- ExitEventArgs.cs
- WebPartVerbCollection.cs
- WorkflowMarkupSerializationProvider.cs
- AnnotationObservableCollection.cs
- KnownColorTable.cs
- COAUTHINFO.cs
- UrlPropertyAttribute.cs
- Calendar.cs
- CopyCodeAction.cs
- RowToFieldTransformer.cs
- relpropertyhelper.cs
- SkipStoryboardToFill.cs
- HashCodeCombiner.cs
- UInt64Converter.cs
- ActivityCodeDomSerializer.cs
- WindowsSpinner.cs
- Renderer.cs
- FileDataSourceCache.cs
- TemplateInstanceAttribute.cs
- WeakRefEnumerator.cs
- LocationSectionRecord.cs
- GridSplitterAutomationPeer.cs
- XMLSchema.cs
- OutgoingWebRequestContext.cs
- TypeDescriptor.cs
- FormViewPageEventArgs.cs
- XmlSchemaObjectCollection.cs
- Int64Storage.cs
- DocumentEventArgs.cs
- CollectionViewGroupInternal.cs
- InputBuffer.cs
- X509UI.cs
- SafeReadContext.cs
- CodeConditionStatement.cs
- ContractHandle.cs
- EntitySetBaseCollection.cs
- FSWPathEditor.cs
- ExpressionEditorAttribute.cs
- SecurityTokenResolver.cs
- KeyManager.cs
- ConfigurationElementProperty.cs
- InkCollectionBehavior.cs
- Model3DGroup.cs
- PeerChannelFactory.cs
- PrintingPermission.cs
- XmlSchemaImporter.cs
- SignatureHelper.cs
- RadioButton.cs
- ConnectionStringsExpressionBuilder.cs
- DocumentAutomationPeer.cs
- LifetimeMonitor.cs
- ResourceType.cs
- FixedDocumentPaginator.cs
- Listener.cs
- NativeWrapper.cs
- ManagedIStream.cs
- ObjectDataSourceMethodEditor.cs
- Identity.cs
- AdRotator.cs
- IPEndPointCollection.cs
- NestPullup.cs
- AttributeData.cs
- ColorConvertedBitmap.cs
- EventSetter.cs
- Helper.cs
- BulletedListEventArgs.cs
- MenuAutomationPeer.cs
- ResourceReader.cs
- ProcessManager.cs
- AggregateNode.cs
- TreeViewDesigner.cs
- RoutingService.cs
- HttpCacheParams.cs
- HttpHeaderCollection.cs
- SafeMemoryMappedFileHandle.cs
- InputProcessorProfiles.cs
- SiteMapSection.cs
- WarningException.cs
- Sentence.cs
- KeyedHashAlgorithm.cs
- Group.cs
- RawUIStateInputReport.cs
- ObjectSet.cs
- BlurEffect.cs