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
- ToolStripAdornerWindowService.cs
- WmlLiteralTextAdapter.cs
- Expression.cs
- MainMenu.cs
- SymLanguageType.cs
- WebPartVerbsEventArgs.cs
- ResolveCriteriaApril2005.cs
- Guid.cs
- SecureEnvironment.cs
- Light.cs
- ScrollItemProviderWrapper.cs
- PropertyKey.cs
- InstanceOwnerQueryResult.cs
- DayRenderEvent.cs
- XmlSchemaGroupRef.cs
- IEnumerable.cs
- SimpleExpression.cs
- ImportContext.cs
- WebEventCodes.cs
- ControlPaint.cs
- Application.cs
- GridViewSortEventArgs.cs
- ReadContentAsBinaryHelper.cs
- ImageIndexConverter.cs
- LocalizableResourceBuilder.cs
- VirtualPathProvider.cs
- GeneralTransform3DGroup.cs
- VisualTransition.cs
- LoginCancelEventArgs.cs
- DynamicValidatorEventArgs.cs
- DataGridViewCell.cs
- DESCryptoServiceProvider.cs
- AccessDataSourceWizardForm.cs
- TreeViewItem.cs
- Expander.cs
- PropertyDescriptorGridEntry.cs
- ServiceCredentialsSecurityTokenManager.cs
- QueryConverter.cs
- SkipQueryOptionExpression.cs
- Registration.cs
- FilterException.cs
- InvokeWebService.cs
- DesignConnection.cs
- MemberJoinTreeNode.cs
- SortQuery.cs
- JoinTreeSlot.cs
- DbLambda.cs
- xml.cs
- sqlpipe.cs
- BindValidationContext.cs
- BoundColumn.cs
- Trace.cs
- SerializationEventsCache.cs
- DesignerSerializationOptionsAttribute.cs
- ExtenderProvidedPropertyAttribute.cs
- ScrollProperties.cs
- PropertyGridView.cs
- TextEditorDragDrop.cs
- TimerEventSubscriptionCollection.cs
- RequestQueryProcessor.cs
- CircleHotSpot.cs
- TransportChannelListener.cs
- BinaryObjectInfo.cs
- UntrustedRecipientException.cs
- StackOverflowException.cs
- PageOrientation.cs
- WindowsFormsLinkLabel.cs
- Condition.cs
- InkSerializer.cs
- IncrementalReadDecoders.cs
- NoPersistProperty.cs
- SR.cs
- MethodExpression.cs
- FileVersionInfo.cs
- Content.cs
- PolicyLevel.cs
- OleDbReferenceCollection.cs
- PhysicalFontFamily.cs
- BamlResourceContent.cs
- baseaxisquery.cs
- OpenTypeLayout.cs
- InnerItemCollectionView.cs
- typedescriptorpermissionattribute.cs
- CSharpCodeProvider.cs
- PropertyPathWorker.cs
- StickyNoteContentControl.cs
- TemplateField.cs
- DataSourceUtil.cs
- FormClosingEvent.cs
- BaseComponentEditor.cs
- DSASignatureFormatter.cs
- StylusCollection.cs
- OdbcCommand.cs
- TextSimpleMarkerProperties.cs
- MetafileHeaderWmf.cs
- __FastResourceComparer.cs
- PagesChangedEventArgs.cs
- oledbmetadatacollectionnames.cs
- SatelliteContractVersionAttribute.cs
- AuthenticationModulesSection.cs