Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SerializableTypeCodeDomSerializer.cs
- TypeReference.cs
- SoapUnknownHeader.cs
- CommandField.cs
- PolicyManager.cs
- TypeReference.cs
- FileAuthorizationModule.cs
- DeflateStreamAsyncResult.cs
- ActivityCodeDomReferenceService.cs
- PointF.cs
- SqlUtils.cs
- ScrollItemPattern.cs
- PrtCap_Public.cs
- AllowedAudienceUriElement.cs
- SslStream.cs
- Section.cs
- KeysConverter.cs
- SamlNameIdentifierClaimResource.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- AnimatedTypeHelpers.cs
- SessionPageStatePersister.cs
- ChangeTracker.cs
- ServiceBusyException.cs
- SiteMapNode.cs
- HtmlImage.cs
- HttpStreamXmlDictionaryReader.cs
- BaseValidator.cs
- AstNode.cs
- TableSectionStyle.cs
- AppSettingsExpressionEditor.cs
- CuspData.cs
- TextBoxAutoCompleteSourceConverter.cs
- remotingproxy.cs
- SplineKeyFrames.cs
- InstanceStoreQueryResult.cs
- RenameRuleObjectDialog.cs
- TraceRecord.cs
- SupportingTokenAuthenticatorSpecification.cs
- HttpRawResponse.cs
- BitmapPalette.cs
- NativeMethods.cs
- UiaCoreApi.cs
- BmpBitmapDecoder.cs
- MultiView.cs
- UserControlDesigner.cs
- DispatcherFrame.cs
- SRDisplayNameAttribute.cs
- TextSimpleMarkerProperties.cs
- BasicViewGenerator.cs
- PasswordPropertyTextAttribute.cs
- UriScheme.cs
- DispatchWrapper.cs
- SecurityDocument.cs
- TextBoxLine.cs
- AdCreatedEventArgs.cs
- DataDocumentXPathNavigator.cs
- BooleanFacetDescriptionElement.cs
- Events.cs
- PageStatePersister.cs
- AllMembershipCondition.cs
- SingleStorage.cs
- GifBitmapDecoder.cs
- CurrentChangedEventManager.cs
- PageTheme.cs
- EasingFunctionBase.cs
- RequestStatusBarUpdateEventArgs.cs
- BindingContext.cs
- ConfigXmlComment.cs
- XmlSchemaType.cs
- EmbeddedObject.cs
- CellPartitioner.cs
- Metadata.cs
- XomlSerializationHelpers.cs
- ColorMatrix.cs
- EventLogWatcher.cs
- CultureData.cs
- MarkupExtensionReturnTypeAttribute.cs
- DrawingImage.cs
- IgnoreDeviceFilterElementCollection.cs
- Page.cs
- OverrideMode.cs
- DataRecordInfo.cs
- unitconverter.cs
- OdbcConnectionFactory.cs
- UrlAuthFailedErrorFormatter.cs
- PropertyDescriptors.cs
- DeploymentExceptionMapper.cs
- MSAAEventDispatcher.cs
- xmlglyphRunInfo.cs
- RecognitionResult.cs
- AnimationClockResource.cs
- LineGeometry.cs
- TdsParserSafeHandles.cs
- PrefixHandle.cs
- ClientConfigPaths.cs
- ObjectContextServiceProvider.cs
- GroupItem.cs
- TableLayoutSettings.cs
- ExtenderProvidedPropertyAttribute.cs
- PopOutPanel.cs