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
- Lease.cs
- SqlDataSourceEnumerator.cs
- MemberInitExpression.cs
- ScrollableControl.cs
- StyleModeStack.cs
- SqlRemoveConstantOrderBy.cs
- GetRecipientRequest.cs
- SafeViewOfFileHandle.cs
- DataPagerFieldItem.cs
- EndpointConfigContainer.cs
- EventManager.cs
- SafeRightsManagementQueryHandle.cs
- SecurityUniqueId.cs
- SoapConverter.cs
- DynamicILGenerator.cs
- RootProfilePropertySettingsCollection.cs
- FrameworkElementFactoryMarkupObject.cs
- DataSetViewSchema.cs
- ObjectDataSourceMethodEventArgs.cs
- SqlOuterApplyReducer.cs
- SoapReflectionImporter.cs
- MergeFailedEvent.cs
- QueryExpression.cs
- EditCommandColumn.cs
- SigningProgress.cs
- WorkerRequest.cs
- RegexBoyerMoore.cs
- OdbcEnvironmentHandle.cs
- SecurityUtils.cs
- dbdatarecord.cs
- WebUtil.cs
- ConfigXmlText.cs
- ParseHttpDate.cs
- IUnknownConstantAttribute.cs
- UriTemplateTrieNode.cs
- FontStretchConverter.cs
- BoundsDrawingContextWalker.cs
- FontResourceCache.cs
- DocumentViewer.cs
- InputReferenceExpression.cs
- CapabilitiesPattern.cs
- SerialPort.cs
- ProfilePropertySettingsCollection.cs
- NavigationProperty.cs
- TextBox.cs
- ResourceExpression.cs
- DataGridRowHeader.cs
- StateMachineSubscriptionManager.cs
- ApplicationDirectory.cs
- SafeNativeMethods.cs
- NameScopePropertyAttribute.cs
- XmlSchemaExternal.cs
- SqlDataSourceConfigureSortForm.cs
- XamlClipboardData.cs
- MatrixAnimationUsingKeyFrames.cs
- SecureEnvironment.cs
- MenuItem.cs
- FormsIdentity.cs
- XmlEntity.cs
- NavigationPropertySingletonExpression.cs
- CapabilitiesAssignment.cs
- storepermissionattribute.cs
- QueryLifecycle.cs
- CheckBox.cs
- Pair.cs
- IndentedWriter.cs
- BridgeDataRecord.cs
- BooleanAnimationUsingKeyFrames.cs
- TokenBasedSet.cs
- XsltContext.cs
- AnnotationObservableCollection.cs
- UTF8Encoding.cs
- Button.cs
- ToolStripDropDownItem.cs
- DiagnosticsConfiguration.cs
- ExpressionBuilderContext.cs
- StorageRoot.cs
- LogicalExpressionEditor.cs
- WorkflowServiceHostFactory.cs
- sqlstateclientmanager.cs
- BitVec.cs
- XmlnsDictionary.cs
- ScrollProviderWrapper.cs
- WebHttpEndpointElement.cs
- COMException.cs
- StreamHelper.cs
- XhtmlMobileTextWriter.cs
- EpmCustomContentDeSerializer.cs
- RoleServiceManager.cs
- BlobPersonalizationState.cs
- HttpCacheVaryByContentEncodings.cs
- WindowsGraphics2.cs
- AlphabeticalEnumConverter.cs
- HttpHeaderCollection.cs
- ShapingEngine.cs
- SqlColumnizer.cs
- XmlMapping.cs
- RegistryPermission.cs
- GeneralTransform2DTo3DTo2D.cs
- CharEntityEncoderFallback.cs