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
- DynamicAttribute.cs
- DataServiceRequestOfT.cs
- EmptyQuery.cs
- PageBuildProvider.cs
- XmlJsonReader.cs
- HttpResponse.cs
- XmlFormatReaderGenerator.cs
- ContentDisposition.cs
- ShaderEffect.cs
- TableCellsCollectionEditor.cs
- ResXResourceSet.cs
- DrawingState.cs
- XPathNodePointer.cs
- ItemAutomationPeer.cs
- DisplayMemberTemplateSelector.cs
- XmlAnyAttributeAttribute.cs
- QuestionEventArgs.cs
- XPathDocument.cs
- BinarySecretKeyIdentifierClause.cs
- COM2PropertyBuilderUITypeEditor.cs
- TypeCodeDomSerializer.cs
- CodeSnippetExpression.cs
- SessionKeyExpiredException.cs
- WebPartAddingEventArgs.cs
- ExportOptions.cs
- ToolStripItemEventArgs.cs
- StyleModeStack.cs
- mda.cs
- HttpEncoder.cs
- MediaElementAutomationPeer.cs
- SystemDiagnosticsSection.cs
- Win32MouseDevice.cs
- DocumentAutomationPeer.cs
- Span.cs
- DoubleAnimation.cs
- PlatformNotSupportedException.cs
- TableItemStyle.cs
- ObjectViewFactory.cs
- TraceListener.cs
- InputLanguageCollection.cs
- InvalidProgramException.cs
- SerializationEventsCache.cs
- WebServiceBindingAttribute.cs
- CustomCredentialPolicy.cs
- DocumentPageHost.cs
- RedirectionProxy.cs
- AnnotationStore.cs
- ExtensionSimplifierMarkupObject.cs
- Knowncolors.cs
- SoapMessage.cs
- HandledEventArgs.cs
- CacheRequest.cs
- VisualStyleInformation.cs
- StateItem.cs
- HTMLTextWriter.cs
- OleAutBinder.cs
- SoapSchemaMember.cs
- ObjectDataSource.cs
- ExpandSegmentCollection.cs
- LinearGradientBrush.cs
- OverflowException.cs
- ListComponentEditorPage.cs
- Command.cs
- SemanticResolver.cs
- SymbolResolver.cs
- _OSSOCK.cs
- XPathPatternParser.cs
- ImageFormat.cs
- MasterPageParser.cs
- InputLangChangeRequestEvent.cs
- HttpDigestClientElement.cs
- TextBox.cs
- AdapterDictionary.cs
- DefaultTextStore.cs
- Comparer.cs
- SqlException.cs
- CodeComment.cs
- HttpModuleCollection.cs
- UpDownEvent.cs
- MatrixStack.cs
- BindingOperations.cs
- JsonFormatGeneratorStatics.cs
- SystemFonts.cs
- UnsafeNativeMethodsTablet.cs
- COM2AboutBoxPropertyDescriptor.cs
- DependencySource.cs
- ObjectCacheSettings.cs
- MetadataItemCollectionFactory.cs
- BitmapEffectOutputConnector.cs
- DeviceContexts.cs
- Update.cs
- MexServiceChannelBuilder.cs
- NativeMethods.cs
- OptimisticConcurrencyException.cs
- CustomPopupPlacement.cs
- ReferentialConstraint.cs
- OrderPreservingPipeliningSpoolingTask.cs
- ListBoxAutomationPeer.cs
- PrimaryKeyTypeConverter.cs
- UriExt.cs