Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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();
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DateBoldEvent.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- StickyNoteHelper.cs
- SqlGenericUtil.cs
- SizeF.cs
- Crypto.cs
- SEHException.cs
- SudsParser.cs
- URLMembershipCondition.cs
- SizeLimitedCache.cs
- CapabilitiesAssignment.cs
- DataKeyCollection.cs
- InputDevice.cs
- Cursor.cs
- XmlSchemaFacet.cs
- _BufferOffsetSize.cs
- Identifier.cs
- XmlSchemaSimpleContent.cs
- ClientConfigurationSystem.cs
- CompilerCollection.cs
- SqlTriggerContext.cs
- DataGridToolTip.cs
- ContractAdapter.cs
- __ComObject.cs
- ListViewGroupConverter.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- GridViewUpdateEventArgs.cs
- HttpListenerPrefixCollection.cs
- CustomAssemblyResolver.cs
- SaveFileDialog.cs
- WebBrowser.cs
- Identifier.cs
- TransactionManager.cs
- EndpointFilterProvider.cs
- ReferencedAssembly.cs
- TableCell.cs
- FixedSOMPageElement.cs
- SmiConnection.cs
- ResourceReferenceKeyNotFoundException.cs
- XmlSchemaException.cs
- IPEndPoint.cs
- WindowsAuthenticationEventArgs.cs
- PlacementWorkspace.cs
- ConfigurationSectionGroup.cs
- SHA384Managed.cs
- MemberHolder.cs
- TabControl.cs
- ApplicationProxyInternal.cs
- Validator.cs
- StringOutput.cs
- DataGridViewTopLeftHeaderCell.cs
- SymbolMethod.cs
- PassportPrincipal.cs
- InputLangChangeRequestEvent.cs
- MarkupExtensionReturnTypeAttribute.cs
- DataGridItem.cs
- SmtpNtlmAuthenticationModule.cs
- ZipIOLocalFileDataDescriptor.cs
- EpmHelper.cs
- DataGridViewCellStyle.cs
- FamilyMap.cs
- Icon.cs
- ScrollBarAutomationPeer.cs
- ConfigurationElement.cs
- ByteStorage.cs
- LinqDataSourceUpdateEventArgs.cs
- ControlCodeDomSerializer.cs
- RewritingSimplifier.cs
- RouteItem.cs
- QilInvokeEarlyBound.cs
- ToolStripSettings.cs
- WebResponse.cs
- HostedHttpTransportManager.cs
- InstanceOwnerQueryResult.cs
- BrowserDefinition.cs
- WebPermission.cs
- LineServicesCallbacks.cs
- ColorContext.cs
- ModifiableIteratorCollection.cs
- WaitHandle.cs
- MenuBindingsEditorForm.cs
- ValidationErrorEventArgs.cs
- WizardStepCollectionEditor.cs
- HttpException.cs
- WaitHandle.cs
- PtsHost.cs
- ServerIdentity.cs
- ToolStripArrowRenderEventArgs.cs
- WindowsToolbarAsMenu.cs
- Reference.cs
- HttpClientCertificate.cs
- TagPrefixInfo.cs
- DirectionalLight.cs
- ListSortDescription.cs
- NotifyParentPropertyAttribute.cs
- Track.cs
- RadioButtonList.cs
- CodeMemberProperty.cs
- AmbientProperties.cs
- ControlIdConverter.cs