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
- EventRecord.cs
- StyleHelper.cs
- TabControlCancelEvent.cs
- TimelineGroup.cs
- FtpRequestCacheValidator.cs
- ValueTypeIndexerReference.cs
- EntityDataSourceUtil.cs
- TreeNodeSelectionProcessor.cs
- SystemUdpStatistics.cs
- ConnectionStringsSection.cs
- CompilerGeneratedAttribute.cs
- Privilege.cs
- PrintSchema.cs
- odbcmetadatacollectionnames.cs
- LogicalExpr.cs
- ExpressionBuilder.cs
- DataKey.cs
- SqlClientWrapperSmiStream.cs
- XXXInfos.cs
- DesigntimeLicenseContext.cs
- MatrixCamera.cs
- AuthenticationConfig.cs
- MetadataProperty.cs
- XmlConvert.cs
- DataStreams.cs
- DocumentSequence.cs
- ProvidersHelper.cs
- Vertex.cs
- SspiSecurityTokenProvider.cs
- ActivityCodeDomSerializationManager.cs
- TriggerCollection.cs
- SHA384Managed.cs
- ListBoxChrome.cs
- FacetChecker.cs
- NetTcpBinding.cs
- PeerTransportListenAddressValidatorAttribute.cs
- FormsAuthenticationCredentials.cs
- SessionEndedEventArgs.cs
- ContainerControl.cs
- EventLogger.cs
- WSSecurityPolicy11.cs
- HtmlElementErrorEventArgs.cs
- QueryResponse.cs
- ArgumentNullException.cs
- LedgerEntry.cs
- EntityEntry.cs
- ToolStripItemTextRenderEventArgs.cs
- PackageProperties.cs
- SQLBytesStorage.cs
- ToolBarPanel.cs
- IArgumentProvider.cs
- UriTemplateLiteralPathSegment.cs
- DeviceContext.cs
- ComponentCodeDomSerializer.cs
- Crypto.cs
- CompilationUnit.cs
- Form.cs
- XPathNodePointer.cs
- DataGridRelationshipRow.cs
- BufferAllocator.cs
- DispatcherExceptionFilterEventArgs.cs
- SecurityDescriptor.cs
- HideDisabledControlAdapter.cs
- EdmItemCollection.cs
- PreviewPrintController.cs
- DeferredSelectedIndexReference.cs
- HttpsChannelListener.cs
- PeerEndPoint.cs
- TransformPatternIdentifiers.cs
- ServicePointManagerElement.cs
- DataQuery.cs
- IndexOutOfRangeException.cs
- Roles.cs
- ProfessionalColors.cs
- DocumentViewerBase.cs
- PackagingUtilities.cs
- KeyPullup.cs
- GiveFeedbackEvent.cs
- TextBoxRenderer.cs
- PathFigureCollectionValueSerializer.cs
- SecurityState.cs
- ScriptResourceHandler.cs
- ObfuscationAttribute.cs
- Point3DAnimationBase.cs
- NavigateEvent.cs
- WpfXamlLoader.cs
- DefaultValueTypeConverter.cs
- DataGridViewCellStateChangedEventArgs.cs
- FormsAuthenticationConfiguration.cs
- FrameworkContextData.cs
- CodeDomExtensionMethods.cs
- ObjectTag.cs
- SerializationTrace.cs
- ActivityCodeDomReferenceService.cs
- PrintingPermission.cs
- GrabHandleGlyph.cs
- AggregatePushdown.cs
- TimeSpanOrInfiniteConverter.cs
- EnumUnknown.cs
- WindowsRichEdit.cs