Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- MergeLocalizationDirectives.cs
- SourceFileInfo.cs
- DataGridBoolColumn.cs
- TextUtf8RawTextWriter.cs
- XappLauncher.cs
- DisplayToken.cs
- GridLength.cs
- UnsafeMethods.cs
- AssemblyHash.cs
- DataContractAttribute.cs
- EncryptedKey.cs
- Stroke.cs
- GeometryCollection.cs
- WebConfigurationFileMap.cs
- TagPrefixCollection.cs
- COM2IDispatchConverter.cs
- RoutedPropertyChangedEventArgs.cs
- FontClient.cs
- CompilerInfo.cs
- SecurityAlgorithmSuite.cs
- AutomationPatternInfo.cs
- SoapMessage.cs
- XmlSchemaSimpleType.cs
- ReflectionUtil.cs
- ContainerParagraph.cs
- FixedSOMTableCell.cs
- EventWaitHandle.cs
- ConfigXmlCDataSection.cs
- Context.cs
- DataViewManager.cs
- TextEffectCollection.cs
- Roles.cs
- JsonEncodingStreamWrapper.cs
- QueryReaderSettings.cs
- ListBoxItem.cs
- ScopeCompiler.cs
- ZipFileInfoCollection.cs
- IndependentAnimationStorage.cs
- ObjectConverter.cs
- HyperLinkDataBindingHandler.cs
- RelationshipEndMember.cs
- PhysicalAddress.cs
- TypeExtensionSerializer.cs
- XPathNavigator.cs
- PageCodeDomTreeGenerator.cs
- ActivityTypeCodeDomSerializer.cs
- RepeatBehavior.cs
- Attribute.cs
- ObjectQuery_EntitySqlExtensions.cs
- DNS.cs
- XmlWhitespace.cs
- DataObjectMethodAttribute.cs
- ObjectIDGenerator.cs
- InstanceDataCollectionCollection.cs
- wgx_sdk_version.cs
- CookieHandler.cs
- FindCriteriaElement.cs
- DecimalStorage.cs
- QilPatternVisitor.cs
- Internal.cs
- RNGCryptoServiceProvider.cs
- SupportsPreviewControlAttribute.cs
- AppSettingsExpressionBuilder.cs
- PipelineComponent.cs
- Win32SafeHandles.cs
- QueryContext.cs
- ColumnWidthChangedEvent.cs
- ExceptionTrace.cs
- Configuration.cs
- CmsInterop.cs
- AppDomainUnloadedException.cs
- AsyncInvokeContext.cs
- OleDbDataAdapter.cs
- TextFormatterHost.cs
- SoapMessage.cs
- AspNetRouteServiceHttpHandler.cs
- JsonServiceDocumentSerializer.cs
- CatalogZone.cs
- CodeDirectoryCompiler.cs
- PartialCachingControl.cs
- DataBoundLiteralControl.cs
- Style.cs
- XpsException.cs
- SqlClientFactory.cs
- Point3DIndependentAnimationStorage.cs
- DesignRelation.cs
- StringSorter.cs
- SchemaManager.cs
- OneToOneMappingSerializer.cs
- EndpointAddress.cs
- DataContractJsonSerializerOperationBehavior.cs
- SetMemberBinder.cs
- ExpressionTextBoxAutomationPeer.cs
- HttpCachePolicyElement.cs
- ChineseLunisolarCalendar.cs
- IdentityReference.cs
- RuntimeConfigLKG.cs
- GridItemProviderWrapper.cs
- PostBackOptions.cs
- DocumentStatusResources.cs