Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ViewgenGatekeeper.cs
- StateBag.cs
- ApplicationServiceManager.cs
- MarkupExtensionParser.cs
- RuntimeHandles.cs
- DataDocumentXPathNavigator.cs
- RtfNavigator.cs
- ObjectItemAssemblyLoader.cs
- RuntimeWrappedException.cs
- EmbeddedMailObjectsCollection.cs
- ImageInfo.cs
- DynamicDataRouteHandler.cs
- GeneralTransform3DGroup.cs
- ScalarOps.cs
- TargetControlTypeCache.cs
- ZipIOExtraField.cs
- ClientData.cs
- MergablePropertyAttribute.cs
- XmlSchemaExternal.cs
- ToolStripDropTargetManager.cs
- BamlTreeMap.cs
- DocumentXPathNavigator.cs
- ResXBuildProvider.cs
- XmlCodeExporter.cs
- GraphicsState.cs
- IdleTimeoutMonitor.cs
- SafeFileHandle.cs
- ProcessStartInfo.cs
- BamlCollectionHolder.cs
- XomlCompilerResults.cs
- HMACSHA512.cs
- HelloOperationCD1AsyncResult.cs
- Matrix3DConverter.cs
- DbException.cs
- SqlVisitor.cs
- TextStore.cs
- CodeTypeDelegate.cs
- ActivityExecutor.cs
- FaultDescription.cs
- MasterPageCodeDomTreeGenerator.cs
- ChainOfResponsibility.cs
- CodeParameterDeclarationExpression.cs
- QueryCacheEntry.cs
- EpmHelper.cs
- MtomMessageEncodingBindingElement.cs
- CategoryGridEntry.cs
- DragAssistanceManager.cs
- DataGridViewCellStyleChangedEventArgs.cs
- GiveFeedbackEvent.cs
- AssemblyAttributes.cs
- ServiceReference.cs
- MultiBinding.cs
- IISMapPath.cs
- HTTPNotFoundHandler.cs
- ClientTargetCollection.cs
- TypeDelegator.cs
- SelfIssuedAuthRSACryptoProvider.cs
- GrowingArray.cs
- RelatedImageListAttribute.cs
- ExeConfigurationFileMap.cs
- ObfuscationAttribute.cs
- CatalogZoneAutoFormat.cs
- EventLogPermissionAttribute.cs
- SkinBuilder.cs
- ManifestResourceInfo.cs
- TemplateBamlRecordReader.cs
- XmlKeywords.cs
- Image.cs
- CodeSubDirectoriesCollection.cs
- LOSFormatter.cs
- SessionSwitchEventArgs.cs
- DataBoundControl.cs
- WebPartEventArgs.cs
- ButtonField.cs
- FunctionDetailsReader.cs
- XPathPatternParser.cs
- FileCodeGroup.cs
- CompiledELinqQueryState.cs
- X509ChainPolicy.cs
- CookieHandler.cs
- RegexWorker.cs
- XmlComplianceUtil.cs
- ResXResourceReader.cs
- HttpHandlerAction.cs
- TdsParserStaticMethods.cs
- MasterPageCodeDomTreeGenerator.cs
- DataPagerFieldCommandEventArgs.cs
- Activity.cs
- EventSinkHelperWriter.cs
- BasePropertyDescriptor.cs
- PagePropertiesChangingEventArgs.cs
- FrameworkElement.cs
- VirtualizingStackPanel.cs
- GPPOINTF.cs
- TextEvent.cs
- SQLGuidStorage.cs
- XmlSchemaException.cs
- SymDocumentType.cs
- OlePropertyStructs.cs
- CriticalExceptions.cs