Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ContextStack.cs
- NamespaceQuery.cs
- MimePart.cs
- HideDisabledControlAdapter.cs
- DeviceContexts.cs
- AncestorChangedEventArgs.cs
- DesignerTextViewAdapter.cs
- UncommonField.cs
- EditorPartChrome.cs
- PeerNode.cs
- BooleanFunctions.cs
- PointIndependentAnimationStorage.cs
- DiffuseMaterial.cs
- AutomationPropertyInfo.cs
- XsdBuilder.cs
- UnsafeNativeMethods.cs
- VectorCollectionValueSerializer.cs
- ExpressionLexer.cs
- TextEndOfParagraph.cs
- CultureTableRecord.cs
- FlowDocumentScrollViewer.cs
- NamedPipeTransportElement.cs
- MaterialCollection.cs
- DuplicateDetector.cs
- EventLogPermissionEntryCollection.cs
- TimelineGroup.cs
- ConnectionStringsSection.cs
- CanonicalXml.cs
- OpCellTreeNode.cs
- ToolBarTray.cs
- CheckBoxBaseAdapter.cs
- DataPagerFieldCommandEventArgs.cs
- XmlAttribute.cs
- pingexception.cs
- Brush.cs
- UnsafeNativeMethods.cs
- BadImageFormatException.cs
- ImageKeyConverter.cs
- NativeMethods.cs
- FormsAuthenticationCredentials.cs
- ToolStripItemEventArgs.cs
- SmtpException.cs
- XmlSchemaSimpleTypeList.cs
- WorkflowPrinting.cs
- ProcessModelInfo.cs
- SrgsElementFactoryCompiler.cs
- SqlStatistics.cs
- IpcManager.cs
- SizeKeyFrameCollection.cs
- RelationalExpressions.cs
- WindowsStatic.cs
- MatrixTransform3D.cs
- StylusTip.cs
- HtmlSelect.cs
- RoleManagerModule.cs
- ReadOnlyCollectionBase.cs
- CollectionView.cs
- XamlToRtfParser.cs
- HttpApplication.cs
- BasePattern.cs
- Polygon.cs
- BuildResultCache.cs
- DataGridViewCellStyle.cs
- SeverityFilter.cs
- DataGridViewRowsAddedEventArgs.cs
- ButtonFlatAdapter.cs
- PropertyState.cs
- ChildTable.cs
- EventDescriptor.cs
- SystemWebCachingSectionGroup.cs
- ProtectedConfiguration.cs
- AspNetRouteServiceHttpHandler.cs
- XmlCountingReader.cs
- TextEditorThreadLocalStore.cs
- Emitter.cs
- FilterException.cs
- KerberosTicketHashIdentifierClause.cs
- ToolStripStatusLabel.cs
- cookie.cs
- ActivityBuilderHelper.cs
- ActionFrame.cs
- StringUtil.cs
- ConfigurationSectionCollection.cs
- ResourcesGenerator.cs
- TileBrush.cs
- MachinePropertyVariants.cs
- XmlNamespaceDeclarationsAttribute.cs
- SHA1CryptoServiceProvider.cs
- DependencyPropertyAttribute.cs
- ColumnBinding.cs
- FullTrustAssembliesSection.cs
- BinaryConverter.cs
- Atom10FormatterFactory.cs
- DataTableMappingCollection.cs
- ShortcutKeysEditor.cs
- FontCollection.cs
- ChannelManager.cs
- SecurityAppliedMessage.cs
- ButtonFieldBase.cs
- DataContractSerializerMessageContractImporter.cs