Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartUserCapability.cs / 1305376 / WebPartUserCapability.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls.WebParts {
using System;
using System.Web.Util;
///
///
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.Web.Util;
///
///
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
- SecurityDescriptor.cs
- DependencyObjectProvider.cs
- DependentList.cs
- ExeContext.cs
- DependencyPropertyChangedEventArgs.cs
- ActiveXHost.cs
- StaticDataManager.cs
- SimpleHandlerBuildProvider.cs
- BitmapImage.cs
- AssemblyUtil.cs
- XamlBrushSerializer.cs
- HostProtectionException.cs
- XamlRtfConverter.cs
- IntPtr.cs
- Validator.cs
- DeviceContext.cs
- ContainerParagraph.cs
- CommonEndpointBehaviorElement.cs
- WorkerRequest.cs
- MD5CryptoServiceProvider.cs
- MenuAutoFormat.cs
- XmlSchemaFacet.cs
- MemberPath.cs
- FixedSOMPageElement.cs
- AlternationConverter.cs
- SystemIcmpV6Statistics.cs
- TreeNodeConverter.cs
- TeredoHelper.cs
- HttpCachePolicy.cs
- GlobalizationAssembly.cs
- StrokeSerializer.cs
- ParameterCollection.cs
- PolyLineSegment.cs
- DataServiceStreamProviderWrapper.cs
- ListBoxDesigner.cs
- CharacterMetrics.cs
- CodeMemberField.cs
- StylusEditingBehavior.cs
- ButtonColumn.cs
- HttpHandler.cs
- ReferencedAssembly.cs
- InfoCardArgumentException.cs
- MessageLogger.cs
- DesignTimeVisibleAttribute.cs
- SoapMessage.cs
- PropertyConverter.cs
- WebPartCatalogCloseVerb.cs
- IconEditor.cs
- tooltip.cs
- PerformanceCounterPermission.cs
- RadioButtonList.cs
- WebPartMenu.cs
- AnnotationResource.cs
- Common.cs
- VoiceInfo.cs
- ConsumerConnectionPoint.cs
- CompilerScope.Storage.cs
- ParenExpr.cs
- ConstraintEnumerator.cs
- BrowserInteropHelper.cs
- Formatter.cs
- SchemaNamespaceManager.cs
- RequestStatusBarUpdateEventArgs.cs
- ImageListImageEditor.cs
- GeneralTransform3D.cs
- ManagementObjectSearcher.cs
- AssemblyName.cs
- TimerTable.cs
- PassportAuthentication.cs
- ToolStripManager.cs
- AutomationPeer.cs
- CodeGroup.cs
- Helpers.cs
- AdapterUtil.cs
- StackOverflowException.cs
- CodeDomComponentSerializationService.cs
- SQLInt32Storage.cs
- ProxyManager.cs
- DelayedRegex.cs
- XamlPointCollectionSerializer.cs
- FileRecordSequence.cs
- OpenTypeCommon.cs
- Column.cs
- WebBrowserEvent.cs
- EntityDataSourceSelectedEventArgs.cs
- LineServicesCallbacks.cs
- BatchStream.cs
- MarkupCompilePass2.cs
- UpdateCommandGenerator.cs
- EntityContainerRelationshipSet.cs
- CollectionTypeElement.cs
- XamlPointCollectionSerializer.cs
- XmlIlVisitor.cs
- TextEditorContextMenu.cs
- StatusBarDrawItemEvent.cs
- PersistenceProviderBehavior.cs
- PointConverter.cs
- IncrementalReadDecoders.cs
- Point.cs
- PersistenceTypeAttribute.cs