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
- AutomationElementCollection.cs
- GiveFeedbackEventArgs.cs
- IdnElement.cs
- RegexBoyerMoore.cs
- Helper.cs
- TextBoxBase.cs
- QilBinary.cs
- DataObjectCopyingEventArgs.cs
- Highlights.cs
- dataobject.cs
- OperationContext.cs
- DBNull.cs
- JapaneseLunisolarCalendar.cs
- SafeCoTaskMem.cs
- MimePart.cs
- CachedBitmap.cs
- StandardToolWindows.cs
- METAHEADER.cs
- XmlSignatureManifest.cs
- TdsParser.cs
- AutoCompleteStringCollection.cs
- SchemaReference.cs
- _ProxyChain.cs
- ObjectIDGenerator.cs
- PreloadedPackages.cs
- Base64WriteStateInfo.cs
- DefaultDialogButtons.cs
- TreeViewHitTestInfo.cs
- TextCharacters.cs
- EntityContainerRelationshipSet.cs
- ReliabilityContractAttribute.cs
- DockPanel.cs
- WebConfigManager.cs
- DetailsView.cs
- ProtectedConfigurationSection.cs
- XmlObjectSerializerWriteContextComplex.cs
- InputMethod.cs
- Fx.cs
- SessionStateModule.cs
- safelinkcollection.cs
- BackgroundFormatInfo.cs
- Int32CAMarshaler.cs
- DataServiceContext.cs
- SerialErrors.cs
- EndpointReference.cs
- StylusCollection.cs
- XmlEntityReference.cs
- ParseHttpDate.cs
- BehaviorEditorPart.cs
- RubberbandSelector.cs
- _Connection.cs
- Double.cs
- EntityReference.cs
- CreateUserWizardStep.cs
- IPEndPointCollection.cs
- WebPartTransformer.cs
- Block.cs
- DataControlButton.cs
- RuntimeConfigLKG.cs
- RootNamespaceAttribute.cs
- KnownTypesProvider.cs
- RelationshipFixer.cs
- ParameterBuilder.cs
- MenuBase.cs
- SafeLocalAllocation.cs
- OrthographicCamera.cs
- JoinGraph.cs
- RSAOAEPKeyExchangeFormatter.cs
- XappLauncher.cs
- CachingHintValidation.cs
- NamespaceInfo.cs
- CodeDomConfigurationHandler.cs
- ImageFormatConverter.cs
- AdapterDictionary.cs
- PagesChangedEventArgs.cs
- Label.cs
- TypeFieldSchema.cs
- ClientBuildManager.cs
- InvokeDelegate.cs
- InternalBufferOverflowException.cs
- DataGridToolTip.cs
- ApplicationFileParser.cs
- ContextStaticAttribute.cs
- ThemeDictionaryExtension.cs
- ReaderWriterLockWrapper.cs
- KeyEvent.cs
- StrongNameKeyPair.cs
- RectKeyFrameCollection.cs
- MobileFormsAuthentication.cs
- DocumentPageViewAutomationPeer.cs
- RangeContentEnumerator.cs
- DeflateInput.cs
- Rotation3DKeyFrameCollection.cs
- LostFocusEventManager.cs
- Margins.cs
- CheckBoxRenderer.cs
- ListBindingHelper.cs
- _LoggingObject.cs
- WebPartsPersonalization.cs
- NavigatingCancelEventArgs.cs