Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Regex.cs
- SecurityDocument.cs
- HttpRequestTraceRecord.cs
- XmlTextReader.cs
- Container.cs
- Profiler.cs
- MasterPageCodeDomTreeGenerator.cs
- XmlAtomicValue.cs
- FrameworkContentElementAutomationPeer.cs
- DesignTimeVisibleAttribute.cs
- TreeWalker.cs
- NavigationFailedEventArgs.cs
- XmlUrlResolver.cs
- MulticastDelegate.cs
- ErrorProvider.cs
- _SslState.cs
- TypeDescriptor.cs
- ValuePattern.cs
- BitmapPalettes.cs
- ToolboxComponentsCreatingEventArgs.cs
- DataControlImageButton.cs
- XmlExtensionFunction.cs
- Rect.cs
- SynchronizedInputPattern.cs
- CallbackTimeoutsElement.cs
- AspProxy.cs
- LinqDataSource.cs
- WorkflowLayouts.cs
- ColorConverter.cs
- PartialList.cs
- PackageDigitalSignatureManager.cs
- AstTree.cs
- AppDomainProtocolHandler.cs
- Pkcs9Attribute.cs
- TextParagraphView.cs
- MethodCallConverter.cs
- mansign.cs
- LocalFileSettingsProvider.cs
- ChildChangedEventArgs.cs
- Helper.cs
- TreeViewCancelEvent.cs
- XamlPathDataSerializer.cs
- PerformanceCounter.cs
- CompModHelpers.cs
- UniqueIdentifierService.cs
- LOSFormatter.cs
- NamedPipeChannelFactory.cs
- TreeViewImageIndexConverter.cs
- ImageClickEventArgs.cs
- WinFormsUtils.cs
- NameTable.cs
- MatrixStack.cs
- WSHttpBindingElement.cs
- _ShellExpression.cs
- SqlProviderServices.cs
- SuppressMessageAttribute.cs
- TableLayoutStyleCollection.cs
- EncodingDataItem.cs
- _emptywebproxy.cs
- XPathBinder.cs
- Visual3DCollection.cs
- GregorianCalendar.cs
- RoleManagerModule.cs
- ProfileSettingsCollection.cs
- ExceptionNotification.cs
- XmlSchemaChoice.cs
- AsymmetricAlgorithm.cs
- PrtCap_Public.cs
- ActivityDesigner.cs
- XmlHierarchyData.cs
- AutoResizedEvent.cs
- AuthStoreRoleProvider.cs
- WebPartCollection.cs
- ProcessStartInfo.cs
- BindingMAnagerBase.cs
- HighlightVisual.cs
- XmlEventCache.cs
- ProtocolViolationException.cs
- AtomParser.cs
- RSAPKCS1SignatureFormatter.cs
- PartitionedDataSource.cs
- cookiecollection.cs
- ToolStripDropTargetManager.cs
- filewebresponse.cs
- ExtenderControl.cs
- AnonymousIdentificationSection.cs
- LookupNode.cs
- CodeGenerator.cs
- LayoutEngine.cs
- XPathNavigator.cs
- RegistryKey.cs
- DodSequenceMerge.cs
- WebPartCloseVerb.cs
- DeobfuscatingStream.cs
- Evidence.cs
- login.cs
- Code.cs
- TreeNodeConverter.cs
- SimpleHandlerFactory.cs
- Decoder.cs