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
- WindowsStatusBar.cs
- ConstructorArgumentAttribute.cs
- _ProxyRegBlob.cs
- FileDialog_Vista.cs
- CodeDesigner.cs
- EntityType.cs
- Lock.cs
- BasicKeyConstraint.cs
- CodeCommentStatementCollection.cs
- PageThemeParser.cs
- TreeIterator.cs
- ConstNode.cs
- Point4DConverter.cs
- EmbeddedMailObjectsCollection.cs
- RefExpr.cs
- DataGridViewCellStyle.cs
- DateTimeOffsetAdapter.cs
- AddInDeploymentState.cs
- ReceiveDesigner.xaml.cs
- PeerInvitationResponse.cs
- CssClassPropertyAttribute.cs
- LingerOption.cs
- HtmlElementErrorEventArgs.cs
- CommandManager.cs
- SQLDateTimeStorage.cs
- DocumentViewerBase.cs
- WsatServiceCertificate.cs
- ReservationCollection.cs
- SeverityFilter.cs
- WebPartConnectionsDisconnectVerb.cs
- SmiGettersStream.cs
- SoapSchemaMember.cs
- SafeThreadHandle.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- StylusDevice.cs
- SourceLocation.cs
- RequestCachingSection.cs
- CodePageUtils.cs
- EditorZoneBase.cs
- GAC.cs
- RuntimeArgumentHandle.cs
- _SecureChannel.cs
- TemplateControlBuildProvider.cs
- FileSystemWatcher.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- XsdCachingReader.cs
- IntSecurity.cs
- COM2ExtendedUITypeEditor.cs
- ThemeDirectoryCompiler.cs
- DBDataPermissionAttribute.cs
- NavigatorInput.cs
- QilXmlReader.cs
- AutomationPeer.cs
- TextCompositionManager.cs
- SignatureResourcePool.cs
- DesignerToolStripControlHost.cs
- UnhandledExceptionEventArgs.cs
- SettingsProperty.cs
- LayoutEngine.cs
- DiagnosticEventProvider.cs
- ImageSource.cs
- XmlObjectSerializerWriteContextComplex.cs
- TreeNodeCollection.cs
- TrackingLocation.cs
- OracleRowUpdatingEventArgs.cs
- Int64Storage.cs
- CommentEmitter.cs
- BindMarkupExtensionSerializer.cs
- FastPropertyAccessor.cs
- ContentType.cs
- SystemMulticastIPAddressInformation.cs
- OSFeature.cs
- QilCloneVisitor.cs
- SimpleHandlerFactory.cs
- DataGridColumnCollection.cs
- ProfessionalColorTable.cs
- TagPrefixAttribute.cs
- Point.cs
- FixUpCollection.cs
- HashMembershipCondition.cs
- CounterCreationDataCollection.cs
- VisualStyleTypesAndProperties.cs
- ConstructorExpr.cs
- BindingCollection.cs
- DrawingContextWalker.cs
- sqlser.cs
- FolderNameEditor.cs
- ContentFileHelper.cs
- Geometry.cs
- _SingleItemRequestCache.cs
- SoapReflectionImporter.cs
- RepeatButtonAutomationPeer.cs
- NegotiationTokenProvider.cs
- SQLBytes.cs
- OracleInternalConnection.cs
- MediaCommands.cs
- ScrollProperties.cs
- MatrixTransform3D.cs
- EditorPartCollection.cs
- HttpCacheVaryByContentEncodings.cs