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
- SafeThreadHandle.cs
- Win32.cs
- WebGetAttribute.cs
- LogManagementAsyncResult.cs
- RadioButtonPopupAdapter.cs
- SqlMetaData.cs
- HandleValueEditor.cs
- XmlDocumentSurrogate.cs
- FontNamesConverter.cs
- coordinator.cs
- DataStreamFromComStream.cs
- DiscoveryClientReferences.cs
- ObjRef.cs
- HttpRuntime.cs
- Soap12FormatExtensions.cs
- FormatControl.cs
- StorageComplexTypeMapping.cs
- SecurityDescriptor.cs
- TimeoutHelper.cs
- DataBindingCollectionEditor.cs
- MaskInputRejectedEventArgs.cs
- PermissionRequestEvidence.cs
- MultiSelectRootGridEntry.cs
- TrailingSpaceComparer.cs
- EncoderReplacementFallback.cs
- SurrogateSelector.cs
- WSHttpBindingBaseElement.cs
- XmlNullResolver.cs
- GridViewCancelEditEventArgs.cs
- InputBinding.cs
- FtpWebRequest.cs
- Random.cs
- MeasurementDCInfo.cs
- Decoder.cs
- UpdateCompiler.cs
- ObjectStateManagerMetadata.cs
- ToolStripItemImageRenderEventArgs.cs
- IIS7WorkerRequest.cs
- RequestCacheValidator.cs
- QilCloneVisitor.cs
- SendKeys.cs
- ItemsPanelTemplate.cs
- LayoutDump.cs
- SignatureHelper.cs
- SqlReferenceCollection.cs
- TextPointerBase.cs
- ListBox.cs
- HttpCapabilitiesBase.cs
- BaseHashHelper.cs
- CounterCreationDataCollection.cs
- DataListItemCollection.cs
- PropertyDescriptor.cs
- WebPartActionVerb.cs
- ConstructorArgumentAttribute.cs
- MsmqIntegrationOutputChannel.cs
- WebColorConverter.cs
- RegexInterpreter.cs
- InputLanguageCollection.cs
- ResizeGrip.cs
- EventManager.cs
- KoreanCalendar.cs
- Range.cs
- SerializeAbsoluteContext.cs
- TextTreeRootNode.cs
- CurrencyManager.cs
- ControlBuilderAttribute.cs
- ContentOnlyMessage.cs
- RepeaterItemEventArgs.cs
- PointConverter.cs
- TextEmbeddedObject.cs
- TextLineBreak.cs
- TextParagraph.cs
- ColorTransform.cs
- MenuItemAutomationPeer.cs
- UmAlQuraCalendar.cs
- WorkflowRuntime.cs
- BaseComponentEditor.cs
- PathParser.cs
- ObjectListItem.cs
- GeometryGroup.cs
- CompatibleIComparer.cs
- Timer.cs
- CacheAxisQuery.cs
- ImageMap.cs
- FlowNode.cs
- PropertyKey.cs
- Context.cs
- ApplicationDirectoryMembershipCondition.cs
- RegexWorker.cs
- BitmapFrameDecode.cs
- DoubleLinkListEnumerator.cs
- Win32PrintDialog.cs
- SqlCommandSet.cs
- AppDomainManager.cs
- XmlWrappingReader.cs
- DelegatingTypeDescriptionProvider.cs
- QueryableFilterRepeater.cs
- UserControlParser.cs
- Closure.cs
- DataGridCaption.cs