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
- TextServicesProperty.cs
- ScriptModule.cs
- WsatConfiguration.cs
- webbrowsersite.cs
- CLRBindingWorker.cs
- columnmapfactory.cs
- CodeExpressionStatement.cs
- UserNamePasswordValidator.cs
- PointAnimationUsingKeyFrames.cs
- TrustManagerMoreInformation.cs
- ResourceReferenceExpressionConverter.cs
- BinaryFormatter.cs
- SequenceDesigner.xaml.cs
- AssertSection.cs
- GridViewUpdateEventArgs.cs
- SiteMap.cs
- HttpCapabilitiesSectionHandler.cs
- Boolean.cs
- CngKeyBlobFormat.cs
- ComponentConverter.cs
- CodeTypeMember.cs
- DesignerRegionCollection.cs
- NameValueCollection.cs
- GeometryDrawing.cs
- MatrixCamera.cs
- DataComponentGenerator.cs
- CodeIndexerExpression.cs
- LoginUtil.cs
- SynchronizedChannelCollection.cs
- NetMsmqBindingElement.cs
- CalendarDesigner.cs
- XmlDeclaration.cs
- Int32KeyFrameCollection.cs
- AndMessageFilter.cs
- ControlBindingsCollection.cs
- GZipStream.cs
- RemoteHelper.cs
- TreeViewImageIndexConverter.cs
- GACMembershipCondition.cs
- SQLBytesStorage.cs
- FontCollection.cs
- WindowsScrollBar.cs
- NetDispatcherFaultException.cs
- ExtenderProvidedPropertyAttribute.cs
- RequestUriProcessor.cs
- DataGridHelper.cs
- SmiEventSink.cs
- TaskFormBase.cs
- TripleDESCryptoServiceProvider.cs
- RunInstallerAttribute.cs
- LinkUtilities.cs
- DomainLiteralReader.cs
- DataGridAutoFormat.cs
- SelectedCellsCollection.cs
- PreProcessor.cs
- MonitoringDescriptionAttribute.cs
- FixedTextView.cs
- XpsPackagingPolicy.cs
- GroupBox.cs
- UnknownWrapper.cs
- NumericUpDownAccelerationCollection.cs
- ConfigurationProperty.cs
- ReturnEventArgs.cs
- AdRotator.cs
- KeyInfo.cs
- DataGridColumnHeaderAutomationPeer.cs
- TreeNodeBindingCollection.cs
- Run.cs
- HostingEnvironmentException.cs
- HttpProxyCredentialType.cs
- UserNameSecurityTokenProvider.cs
- WebHostedComPlusServiceHost.cs
- XmlNullResolver.cs
- Section.cs
- TextEditorContextMenu.cs
- TabControlEvent.cs
- TypeToken.cs
- selecteditemcollection.cs
- WindowsStreamSecurityElement.cs
- ListViewUpdatedEventArgs.cs
- DynamicResourceExtensionConverter.cs
- ListGeneralPage.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- HttpCacheVary.cs
- TdsParserStaticMethods.cs
- GridViewHeaderRowPresenter.cs
- CachedFontFamily.cs
- VectorKeyFrameCollection.cs
- XpsS0ValidatingLoader.cs
- GridViewRowEventArgs.cs
- ContextMarshalException.cs
- XmlTextWriter.cs
- TreeNodeBinding.cs
- LayoutDump.cs
- CodeAttributeArgumentCollection.cs
- UrlParameterWriter.cs
- QueryTask.cs
- MenuItem.cs
- errorpatternmatcher.cs
- MetabaseServerConfig.cs