Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartUserCapability.cs / 1 / WebPartUserCapability.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Security.Permissions; using System.Web.Util; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] public sealed class WebPartUserCapability { private string _name; ////// public WebPartUserCapability(string name) { if (String.IsNullOrEmpty(name)) { throw ExceptionUtil.ParameterNullOrEmpty("name"); } _name = name; } ////// public string Name { get { return _name; } } ////// public override bool Equals(object o) { if (o == this) { return true; } WebPartUserCapability other = o as WebPartUserCapability; return (other != null) && (other.Name == Name); } ////// public override int GetHashCode() { return _name.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Security.Permissions; using System.Web.Util; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] public sealed class WebPartUserCapability { private string _name; ////// public WebPartUserCapability(string name) { if (String.IsNullOrEmpty(name)) { throw ExceptionUtil.ParameterNullOrEmpty("name"); } _name = name; } ////// public string Name { get { return _name; } } ////// public override bool Equals(object o) { if (o == this) { return true; } WebPartUserCapability other = o as WebPartUserCapability; return (other != null) && (other.Name == Name); } ////// public override int GetHashCode() { return _name.GetHashCode(); } } } // 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
- CodeComment.cs
- WmfPlaceableFileHeader.cs
- Effect.cs
- ISAPIApplicationHost.cs
- SerializableAttribute.cs
- InvalidContentTypeException.cs
- CqlQuery.cs
- FilterFactory.cs
- SecurityCriticalDataForSet.cs
- LocalizedNameDescriptionPair.cs
- CheckBoxFlatAdapter.cs
- UpdatePanel.cs
- XsdValidatingReader.cs
- _FtpDataStream.cs
- XmlSchemaDatatype.cs
- PointAnimationBase.cs
- SmiXetterAccessMap.cs
- SQLConvert.cs
- UdpDiscoveryMessageFilter.cs
- NamedPipeAppDomainProtocolHandler.cs
- __ComObject.cs
- TextTreeUndoUnit.cs
- RadioButtonList.cs
- ScriptServiceAttribute.cs
- XmlKeywords.cs
- IncrementalHitTester.cs
- BinaryFormatterWriter.cs
- SmtpNtlmAuthenticationModule.cs
- BooleanAnimationUsingKeyFrames.cs
- Vector3DCollectionConverter.cs
- Point3DAnimation.cs
- AtomEntry.cs
- ContextMenuService.cs
- ToolStripAdornerWindowService.cs
- ArraySegment.cs
- FrameworkPropertyMetadata.cs
- OleDbCommandBuilder.cs
- Interfaces.cs
- HttpSocketManager.cs
- ColumnClickEvent.cs
- AddInServer.cs
- WebServiceTypeData.cs
- TableLayoutPanel.cs
- Serializer.cs
- SqlCaseSimplifier.cs
- LinkedList.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ReflectPropertyDescriptor.cs
- LinkedList.cs
- HttpCookieCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- Point4D.cs
- KerberosTicketHashIdentifierClause.cs
- OneOfScalarConst.cs
- DataListItemEventArgs.cs
- CodeFieldReferenceExpression.cs
- GeneralTransform3DCollection.cs
- CoordinationService.cs
- FolderBrowserDialogDesigner.cs
- OleDbRowUpdatingEvent.cs
- XamlToRtfWriter.cs
- RegistrationServices.cs
- XPathBuilder.cs
- MouseGesture.cs
- DataBindingHandlerAttribute.cs
- TypeLoader.cs
- EditorZoneBase.cs
- ProfessionalColorTable.cs
- Message.cs
- SyndicationSerializer.cs
- SHA384CryptoServiceProvider.cs
- ToolboxItemWrapper.cs
- EndpointBehaviorElement.cs
- figurelengthconverter.cs
- XmlSchemaSequence.cs
- Registry.cs
- ResXDataNode.cs
- GraphicsPath.cs
- ExtensionSurface.cs
- CurrentChangingEventArgs.cs
- DataSourceProvider.cs
- ContextBase.cs
- PerformanceCountersBase.cs
- NativeMethods.cs
- ScriptResourceDefinition.cs
- IsolatedStorageFile.cs
- ChannelSinkStacks.cs
- InkCanvasInnerCanvas.cs
- ExpressionParser.cs
- VideoDrawing.cs
- TypeDelegator.cs
- Tracking.cs
- SpeakInfo.cs
- XamlSerializerUtil.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- InputQueue.cs
- ModelToObjectValueConverter.cs
- SafeTimerHandle.cs
- UidPropertyAttribute.cs
- TimestampInformation.cs