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
- BooleanKeyFrameCollection.cs
- GPRECT.cs
- ReadOnlyCollection.cs
- EventMap.cs
- CodeTypeMember.cs
- CustomAttributeFormatException.cs
- HostingEnvironment.cs
- ProxyManager.cs
- ListenerBinder.cs
- BaseParagraph.cs
- FileClassifier.cs
- TreeNodeMouseHoverEvent.cs
- ClientSettings.cs
- RuleInfoComparer.cs
- Timer.cs
- DiffuseMaterial.cs
- EntityDesignPluralizationHandler.cs
- AnimationClockResource.cs
- EdmProviderManifest.cs
- HttpProfileBase.cs
- Span.cs
- filewebrequest.cs
- OracleBoolean.cs
- RelationshipNavigation.cs
- ItemsControl.cs
- ProcessingInstructionAction.cs
- XmlNodeChangedEventManager.cs
- XmlILOptimizerVisitor.cs
- ParallelDesigner.xaml.cs
- InstanceData.cs
- SqlVisitor.cs
- DesignerSerializationVisibilityAttribute.cs
- QilIterator.cs
- Collection.cs
- PropertyConverter.cs
- ZipIOCentralDirectoryFileHeader.cs
- _ShellExpression.cs
- TreeBuilderBamlTranslator.cs
- ValueSerializer.cs
- SocketElement.cs
- AssemblyAttributesGoHere.cs
- XmlSchemaProviderAttribute.cs
- TableDetailsCollection.cs
- _NegoState.cs
- StrokeCollection.cs
- Timer.cs
- GenericsInstances.cs
- GroupBox.cs
- ActionItem.cs
- Token.cs
- DiagnosticTraceRecords.cs
- ListViewGroup.cs
- Path.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- EntityProxyFactory.cs
- ProfileGroupSettings.cs
- StyleSheetRefUrlEditor.cs
- RewritingSimplifier.cs
- StringFreezingAttribute.cs
- SqlClientMetaDataCollectionNames.cs
- KoreanLunisolarCalendar.cs
- IisTraceListener.cs
- AsymmetricKeyExchangeFormatter.cs
- DataGridViewCheckBoxCell.cs
- CurrentTimeZone.cs
- DecoderFallback.cs
- SystemWebSectionGroup.cs
- PhysicalFontFamily.cs
- UrlPropertyAttribute.cs
- ExternalFile.cs
- IdentityManager.cs
- LinearQuaternionKeyFrame.cs
- RpcCryptoContext.cs
- XamlContextStack.cs
- StreamGeometryContext.cs
- ReadOnlyMetadataCollection.cs
- GradientBrush.cs
- TripleDES.cs
- DataComponentMethodGenerator.cs
- SelectedGridItemChangedEvent.cs
- Property.cs
- DefaultValueConverter.cs
- OptionalColumn.cs
- GetPageNumberCompletedEventArgs.cs
- SerializationObjectManager.cs
- ContractNamespaceAttribute.cs
- WindowProviderWrapper.cs
- SmiContextFactory.cs
- HierarchicalDataBoundControl.cs
- SourceCollection.cs
- AppDomainAttributes.cs
- FilterException.cs
- SystemResourceKey.cs
- StringBlob.cs
- Parameter.cs
- Selection.cs
- AppModelKnownContentFactory.cs
- HtmlMobileTextWriter.cs
- WebPartTransformer.cs
- GlyphInfoList.cs