Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / ListViewItem.cs / 1 / ListViewItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Web; using System.Web.UI; namespace System.Web.UI.WebControls { [AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] [ ToolboxItem(false) ] public class ListViewItem : Control, INamingContainer { private ListViewItemType _itemType; public ListViewItem(ListViewItemType itemType) { _itemType = itemType; } public ListViewItemType ItemType { get { return _itemType; } } [SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers", MessageId = "1#")] protected override bool OnBubbleEvent(object source, EventArgs e) { if (e is CommandEventArgs) { ListViewCommandEventArgs args = new ListViewCommandEventArgs(this, source, (CommandEventArgs)e); RaiseBubbleEvent(this, args); return true; } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Web; using System.Web.UI; namespace System.Web.UI.WebControls { [AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] [ ToolboxItem(false) ] public class ListViewItem : Control, INamingContainer { private ListViewItemType _itemType; public ListViewItem(ListViewItemType itemType) { _itemType = itemType; } public ListViewItemType ItemType { get { return _itemType; } } [SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers", MessageId = "1#")] protected override bool OnBubbleEvent(object source, EventArgs e) { if (e is CommandEventArgs) { ListViewCommandEventArgs args = new ListViewCommandEventArgs(this, source, (CommandEventArgs)e); RaiseBubbleEvent(this, args); return true; } return false; } } } // 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
- EventHandlingScope.cs
- Column.cs
- ImageBrush.cs
- StringArrayConverter.cs
- DirectoryInfo.cs
- PackageRelationship.cs
- Visual3DCollection.cs
- RepeatButton.cs
- XmlSchemaSimpleType.cs
- BasicExpandProvider.cs
- BrowserTree.cs
- ObjectReaderCompiler.cs
- Rotation3DAnimationUsingKeyFrames.cs
- parserscommon.cs
- ActivityBindForm.cs
- CaseInsensitiveOrdinalStringComparer.cs
- CustomLineCap.cs
- SystemIPInterfaceProperties.cs
- XamlFrame.cs
- XmlSchemaAny.cs
- Regex.cs
- DesignerObjectListAdapter.cs
- ConfigXmlElement.cs
- Literal.cs
- SqlCacheDependencyDatabaseCollection.cs
- ExpressionBinding.cs
- DefaultEvaluationContext.cs
- IndicFontClient.cs
- DocumentDesigner.cs
- ModuleConfigurationInfo.cs
- DefaultBinder.cs
- XPathDescendantIterator.cs
- CleanUpVirtualizedItemEventArgs.cs
- MsmqIntegrationChannelFactory.cs
- PrintingPermission.cs
- RawKeyboardInputReport.cs
- ColumnWidthChangingEvent.cs
- WrapperSecurityCommunicationObject.cs
- DataControlButton.cs
- DataGridViewLayoutData.cs
- MenuTracker.cs
- smtppermission.cs
- RectAnimation.cs
- XPathScanner.cs
- ObjectItemCachedAssemblyLoader.cs
- DataBinding.cs
- XmlQualifiedNameTest.cs
- SchemaTableOptionalColumn.cs
- ColorDialog.cs
- ToolBarButtonClickEvent.cs
- DetailsViewUpdatedEventArgs.cs
- ExplicitDiscriminatorMap.cs
- ContractMapping.cs
- SaveRecipientRequest.cs
- ProjectionPath.cs
- OletxCommittableTransaction.cs
- LayoutDump.cs
- FrameworkTemplate.cs
- Win32.cs
- FreezableDefaultValueFactory.cs
- Win32.cs
- HttpRequestCacheValidator.cs
- SelectionRangeConverter.cs
- RowToParametersTransformer.cs
- PriorityQueue.cs
- FormViewCommandEventArgs.cs
- LocatorPart.cs
- serverconfig.cs
- IPGlobalProperties.cs
- ComponentChangedEvent.cs
- LocatorPartList.cs
- Button.cs
- SqlDataRecord.cs
- ToolboxItemAttribute.cs
- Mutex.cs
- IdentityModelDictionary.cs
- ImageResources.Designer.cs
- RightNameExpirationInfoPair.cs
- CodeIdentifier.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DescendantQuery.cs
- LazyTextWriterCreator.cs
- ReaderWriterLockWrapper.cs
- CodeAccessSecurityEngine.cs
- GuidelineCollection.cs
- TrustManagerMoreInformation.cs
- ParserOptions.cs
- ScaleTransform3D.cs
- CssClassPropertyAttribute.cs
- XhtmlTextWriter.cs
- LowerCaseStringConverter.cs
- GZipStream.cs
- SpecularMaterial.cs
- XmlChildEnumerator.cs
- ToolTipService.cs
- MasterPageParser.cs
- ValueOfAction.cs
- MetadataItemSerializer.cs
- SqlInternalConnectionTds.cs
- DefaultExpression.cs