Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlSchemaAttribute.cs
- Misc.cs
- PersistenceParticipant.cs
- DBConnectionString.cs
- NeutralResourcesLanguageAttribute.cs
- WebEvents.cs
- FunctionImportMapping.cs
- RegexFCD.cs
- SynchronizationContext.cs
- CryptoProvider.cs
- HGlobalSafeHandle.cs
- SoapProtocolReflector.cs
- ItemContainerGenerator.cs
- BitmapPalettes.cs
- JapaneseLunisolarCalendar.cs
- PropertyRef.cs
- DiscoveryClientDocuments.cs
- CompilerTypeWithParams.cs
- WebPartPersonalization.cs
- RecognizerBase.cs
- UdpChannelFactory.cs
- TargetInvocationException.cs
- RoutingChannelExtension.cs
- AcceleratedTokenProvider.cs
- TextStore.cs
- XmlSchemaInclude.cs
- FontFamily.cs
- WindowManager.cs
- CodeComment.cs
- XmlSchemaImporter.cs
- Imaging.cs
- HTTPRemotingHandler.cs
- CacheMemory.cs
- MemoryStream.cs
- DateTimeConstantAttribute.cs
- SlipBehavior.cs
- AttachedPropertyInfo.cs
- Set.cs
- MsmqInputSessionChannelListener.cs
- ImageResources.Designer.cs
- Divide.cs
- TargetControlTypeCache.cs
- tooltip.cs
- WsdlParser.cs
- CompiledRegexRunnerFactory.cs
- DataContractSerializerOperationBehavior.cs
- DesignerEditorPartChrome.cs
- DesignerSelectionListAdapter.cs
- RegexWorker.cs
- DeviceSpecificChoice.cs
- MatrixKeyFrameCollection.cs
- FixedTextContainer.cs
- DashStyles.cs
- AnnotationResourceChangedEventArgs.cs
- ExpressionNormalizer.cs
- X509Utils.cs
- TextEmbeddedObject.cs
- TranslateTransform3D.cs
- NativeMethodsOther.cs
- HtmlAnchor.cs
- _AutoWebProxyScriptWrapper.cs
- EdmType.cs
- DeviceContexts.cs
- PageAsyncTaskManager.cs
- ObjectStateFormatter.cs
- TrustManager.cs
- KeyConstraint.cs
- Maps.cs
- ProgressBarAutomationPeer.cs
- Listbox.cs
- EnvironmentPermission.cs
- ProfileSection.cs
- OutputCacheSection.cs
- XmlQueryContext.cs
- _TransmitFileOverlappedAsyncResult.cs
- RSAPKCS1SignatureDeformatter.cs
- AncestorChangedEventArgs.cs
- TraceHandler.cs
- Privilege.cs
- CellConstantDomain.cs
- PartialCachingControl.cs
- AddInIpcChannel.cs
- TextElementEditingBehaviorAttribute.cs
- ListViewPagedDataSource.cs
- BitmapEffectOutputConnector.cs
- ObjectViewEntityCollectionData.cs
- SqlBulkCopy.cs
- DESCryptoServiceProvider.cs
- Sequence.cs
- ProjectionPruner.cs
- GridViewCommandEventArgs.cs
- XmlSchemaComplexType.cs
- RoleGroupCollection.cs
- TreeWalkHelper.cs
- SQLByte.cs
- ElementNotEnabledException.cs
- SecureStringHasher.cs
- ApplicationInfo.cs
- AssertSection.cs
- RequestTimeoutManager.cs