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
- StaticSiteMapProvider.cs
- StreamAsIStream.cs
- BufferModeSettings.cs
- CodeDomConfigurationHandler.cs
- PointLight.cs
- SecurityTokenTypes.cs
- Hash.cs
- WebContentFormatHelper.cs
- LineServicesCallbacks.cs
- TextRenderer.cs
- TripleDESCryptoServiceProvider.cs
- InvokeHandlers.cs
- JsonDeserializer.cs
- FormsAuthenticationUserCollection.cs
- HeaderLabel.cs
- CultureInfo.cs
- HostedHttpTransportManager.cs
- EntityReference.cs
- DCSafeHandle.cs
- FontFamily.cs
- FormatException.cs
- _NestedSingleAsyncResult.cs
- AxParameterData.cs
- Transform3D.cs
- WinCategoryAttribute.cs
- PreviewKeyDownEventArgs.cs
- FrameDimension.cs
- HotCommands.cs
- SystemInfo.cs
- MetadataPropertyvalue.cs
- UInt16.cs
- ResourceDisplayNameAttribute.cs
- SqlDataSourceDesigner.cs
- ClientConvert.cs
- WebPartDisplayModeCancelEventArgs.cs
- OracleConnectionString.cs
- NavigationProgressEventArgs.cs
- ItemCheckedEvent.cs
- ListChangedEventArgs.cs
- ErrorWrapper.cs
- NumberFormatInfo.cs
- Repeater.cs
- Context.cs
- Select.cs
- MimeMultiPart.cs
- PropertyBuilder.cs
- HttpHandlerAction.cs
- ViewStateModeByIdAttribute.cs
- DocumentPageView.cs
- TextContainerChangedEventArgs.cs
- XmlSchemaValidator.cs
- QilInvoke.cs
- NameTable.cs
- CngAlgorithmGroup.cs
- ValidationSummary.cs
- IIS7WorkerRequest.cs
- PrinterSettings.cs
- SessionEndingCancelEventArgs.cs
- RtType.cs
- Point3DAnimation.cs
- AdditionalEntityFunctions.cs
- SqlProviderManifest.cs
- HttpCapabilitiesSectionHandler.cs
- ImageAnimator.cs
- ConfigXmlReader.cs
- FrameworkPropertyMetadata.cs
- WizardPanel.cs
- XmlSchemaSimpleTypeList.cs
- ICollection.cs
- SimpleWorkerRequest.cs
- SignHashRequest.cs
- AssemblyCollection.cs
- PersistenceProviderElement.cs
- LifetimeServices.cs
- FixedFindEngine.cs
- SEHException.cs
- CommonObjectSecurity.cs
- XamlBrushSerializer.cs
- TCPClient.cs
- InputQueue.cs
- SpotLight.cs
- ConfigurationElement.cs
- DecoratedNameAttribute.cs
- RSACryptoServiceProvider.cs
- FreezableCollection.cs
- BitmapMetadataEnumerator.cs
- LogLogRecordHeader.cs
- InstallerTypeAttribute.cs
- TimelineGroup.cs
- ActionNotSupportedException.cs
- Char.cs
- Misc.cs
- WindowsSlider.cs
- StylusButtonCollection.cs
- ColumnWidthChangingEvent.cs
- InvokeCompletedEventArgs.cs
- Operand.cs
- CodeDomConfigurationHandler.cs
- CrossSiteScriptingValidation.cs
- ClassData.cs