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
- ParsedAttributeCollection.cs
- TreeViewItem.cs
- BamlResourceContent.cs
- CodeTypeDelegate.cs
- XmlSchemaAnnotation.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- FieldMetadata.cs
- IssuanceLicense.cs
- XPathNavigator.cs
- FunctionQuery.cs
- SigningProgress.cs
- ControlDesigner.cs
- RecognitionResult.cs
- storagemappingitemcollection.viewdictionary.cs
- PolyBezierSegment.cs
- ExpressionEditorAttribute.cs
- PointConverter.cs
- PermissionListSet.cs
- XMLDiffLoader.cs
- RadioButtonList.cs
- SpeechUI.cs
- XamlFigureLengthSerializer.cs
- MessageSecurityProtocolFactory.cs
- NumberSubstitution.cs
- ClientSession.cs
- LogicalExpr.cs
- PersistenceTypeAttribute.cs
- BaseValidatorDesigner.cs
- CmsInterop.cs
- LinqDataSourceHelper.cs
- IODescriptionAttribute.cs
- DrawingState.cs
- SettingsPropertyValueCollection.cs
- SHA256Managed.cs
- FlowSwitchLink.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- Property.cs
- MessageDecoder.cs
- XmlEntity.cs
- GridViewRowCollection.cs
- JavascriptCallbackResponseProperty.cs
- WindowVisualStateTracker.cs
- RichTextBoxDesigner.cs
- ReferenceCountedObject.cs
- TextElementCollection.cs
- SQLRoleProvider.cs
- WriteTimeStream.cs
- EpmContentSerializer.cs
- _HelperAsyncResults.cs
- QilName.cs
- DbParameterCollectionHelper.cs
- WebPartManagerInternals.cs
- SamlAudienceRestrictionCondition.cs
- XmlEntityReference.cs
- LinqDataSourceDisposeEventArgs.cs
- CalendarDateRangeChangingEventArgs.cs
- StringValueSerializer.cs
- EncoderNLS.cs
- DocumentPageViewAutomationPeer.cs
- ConnectionConsumerAttribute.cs
- RepeatBehaviorConverter.cs
- XsdBuilder.cs
- CfgRule.cs
- _SslStream.cs
- MetaColumn.cs
- keycontainerpermission.cs
- ObservableDictionary.cs
- XmlSchemaValidator.cs
- Point3D.cs
- XmlILCommand.cs
- EmptyStringExpandableObjectConverter.cs
- SessionPageStatePersister.cs
- VisemeEventArgs.cs
- SchemaConstraints.cs
- LocalizableResourceBuilder.cs
- RegexCharClass.cs
- Update.cs
- CompareValidator.cs
- CustomWebEventKey.cs
- OlePropertyStructs.cs
- DesignerCapabilities.cs
- LabelLiteral.cs
- ControlValuePropertyAttribute.cs
- sqlpipe.cs
- XmlEntityReference.cs
- FragmentQuery.cs
- DataGridViewCheckBoxColumn.cs
- CustomExpressionEventArgs.cs
- NotifyIcon.cs
- SecurityNegotiationException.cs
- SubMenuStyleCollection.cs
- XmlConvert.cs
- CodeTypeConstructor.cs
- XmlReflectionMember.cs
- MultiView.cs
- RangeValueProviderWrapper.cs
- SqlUserDefinedTypeAttribute.cs
- ProfileParameter.cs
- VersionPair.cs
- SqlFormatter.cs