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
- ServiceDescription.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- IntSumAggregationOperator.cs
- EventLog.cs
- HtmlValidationSummaryAdapter.cs
- COM2FontConverter.cs
- ProviderConnectionPoint.cs
- ProxyDataContractResolver.cs
- ServiceInfo.cs
- VisualStyleInformation.cs
- NoneExcludedImageIndexConverter.cs
- Membership.cs
- SafeSystemMetrics.cs
- EventSinkHelperWriter.cs
- ClickablePoint.cs
- SqlUserDefinedTypeAttribute.cs
- CssClassPropertyAttribute.cs
- IncrementalReadDecoders.cs
- AssemblyResourceLoader.cs
- HttpProfileBase.cs
- XmlWellformedWriterHelpers.cs
- ProcessRequestAsyncResult.cs
- MsmqProcessProtocolHandler.cs
- _SingleItemRequestCache.cs
- RenderDataDrawingContext.cs
- FontResourceCache.cs
- SourceInterpreter.cs
- DataGridViewCheckBoxCell.cs
- Imaging.cs
- Properties.cs
- ContentPresenter.cs
- RangeValueProviderWrapper.cs
- VirtualPathProvider.cs
- TypeSystem.cs
- RoleManagerEventArgs.cs
- DataControlHelper.cs
- ReadOnlyMetadataCollection.cs
- CodeDelegateCreateExpression.cs
- WebRequestModulesSection.cs
- MbpInfo.cs
- ShutDownListener.cs
- WizardStepBase.cs
- Msec.cs
- EffectiveValueEntry.cs
- SystemNetHelpers.cs
- UserCancellationException.cs
- SqlParameterCollection.cs
- CodeConditionStatement.cs
- DockProviderWrapper.cs
- SqlDataReader.cs
- SystemSounds.cs
- DataTableCollection.cs
- InfoCardCryptoHelper.cs
- WebConfigurationHost.cs
- InvalidPropValue.cs
- AnimationLayer.cs
- MouseOverProperty.cs
- WebPartActionVerb.cs
- ResetableIterator.cs
- ConstructorBuilder.cs
- GenericPrincipal.cs
- ProtocolViolationException.cs
- LinearKeyFrames.cs
- ComNativeDescriptor.cs
- UnmanagedMemoryAccessor.cs
- StateWorkerRequest.cs
- SelectionItemPattern.cs
- _FixedSizeReader.cs
- TimeoutStream.cs
- XmlRawWriterWrapper.cs
- HttpBrowserCapabilitiesBase.cs
- SiteMapPath.cs
- Zone.cs
- IsolatedStorageFile.cs
- DataBindingList.cs
- EnumMember.cs
- iisPickupDirectory.cs
- sitestring.cs
- PeerObject.cs
- QilLiteral.cs
- InstalledVoice.cs
- WsdlContractConversionContext.cs
- SafeLocalAllocation.cs
- MappedMetaModel.cs
- SafeNativeMemoryHandle.cs
- FormViewCommandEventArgs.cs
- HexParser.cs
- InvokeGenerator.cs
- EastAsianLunisolarCalendar.cs
- TypeConverterHelper.cs
- EventProxy.cs
- _TimerThread.cs
- LeftCellWrapper.cs
- SerialStream.cs
- VsPropertyGrid.cs
- EtwTrace.cs
- UnitySerializationHolder.cs
- MatrixAnimationUsingKeyFrames.cs
- XhtmlBasicCalendarAdapter.cs
- XPathNodeInfoAtom.cs