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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsListBox.cs
- RealizationDrawingContextWalker.cs
- COM2Properties.cs
- Keywords.cs
- TextOnlyOutput.cs
- _NativeSSPI.cs
- StringUtil.cs
- RadioButtonPopupAdapter.cs
- EventHandlerList.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- EditingCoordinator.cs
- StructuredType.cs
- InlineCollection.cs
- MultipartContentParser.cs
- MappedMetaModel.cs
- WebPartVerbsEventArgs.cs
- SafeMarshalContext.cs
- PersonalizationProvider.cs
- CookieParameter.cs
- _NtlmClient.cs
- DataRowExtensions.cs
- HttpApplication.cs
- ReachFixedPageSerializerAsync.cs
- ProgressBar.cs
- FormViewRow.cs
- QueueAccessMode.cs
- SqlFacetAttribute.cs
- Stroke2.cs
- DbException.cs
- ISessionStateStore.cs
- FlowPosition.cs
- NumericUpDownAccelerationCollection.cs
- MultiView.cs
- MutexSecurity.cs
- SafePipeHandle.cs
- BaseTreeIterator.cs
- ActivitiesCollection.cs
- ShadowGlyph.cs
- MobileTemplatedControlDesigner.cs
- DesignerRegion.cs
- StandardMenuStripVerb.cs
- StatusBarPanelClickEvent.cs
- AmbientProperties.cs
- BindUriHelper.cs
- HTMLTagNameToTypeMapper.cs
- XPathNavigator.cs
- ProcessModule.cs
- WebConfigurationManager.cs
- TextBounds.cs
- WizardStepBase.cs
- TypeConvertions.cs
- TextParagraphCache.cs
- NoResizeSelectionBorderGlyph.cs
- DataContractSerializerSection.cs
- DataGridViewCellStyleChangedEventArgs.cs
- DependencyPropertyKind.cs
- EventPropertyMap.cs
- KeyManager.cs
- MachinePropertyVariants.cs
- XmlWhitespace.cs
- DataControlFieldCell.cs
- LazyTextWriterCreator.cs
- DataServices.cs
- NameNode.cs
- Parser.cs
- ObsoleteAttribute.cs
- EntitySqlQueryState.cs
- GlyphElement.cs
- TextTabProperties.cs
- PrintDocument.cs
- HttpWebResponse.cs
- ParseChildrenAsPropertiesAttribute.cs
- ResponseStream.cs
- LabelLiteral.cs
- PropertyGridView.cs
- WebScriptEndpoint.cs
- SmiRecordBuffer.cs
- ValidatorUtils.cs
- CodeArgumentReferenceExpression.cs
- TextTrailingWordEllipsis.cs
- FastPropertyAccessor.cs
- ArgumentDesigner.xaml.cs
- BooleanAnimationBase.cs
- CodeTypeDeclaration.cs
- SmiTypedGetterSetter.cs
- PropertyEmitter.cs
- SQLInt32Storage.cs
- XmlStringTable.cs
- PrintControllerWithStatusDialog.cs
- StringPropertyBuilder.cs
- PrintDialog.cs
- XmlLanguageConverter.cs
- DateTimeFormatInfo.cs
- CounterSampleCalculator.cs
- CodeArrayIndexerExpression.cs
- MetadataPropertyAttribute.cs
- RichTextBox.cs
- RulePatternOps.cs
- PartialCachingControl.cs
- NavigationPropertyAccessor.cs