Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- QueryComponents.cs
- PerformanceCounterManager.cs
- FormViewCommandEventArgs.cs
- Region.cs
- SelectionEditor.cs
- FormViewUpdateEventArgs.cs
- arc.cs
- CryptoStream.cs
- RemotingConfigParser.cs
- FontDifferentiator.cs
- HtmlGenericControl.cs
- PolygonHotSpot.cs
- TimeoutValidationAttribute.cs
- DbQueryCommandTree.cs
- TrackingProfileDeserializationException.cs
- TextTreePropertyUndoUnit.cs
- DockProviderWrapper.cs
- NoPersistProperty.cs
- PageParserFilter.cs
- MetafileHeaderWmf.cs
- ServiceContractGenerationContext.cs
- XMLSchema.cs
- CommandHelper.cs
- FilteredDataSetHelper.cs
- WorkflowRuntimeService.cs
- DataColumnMappingCollection.cs
- PathGeometry.cs
- ClientApiGenerator.cs
- BoolLiteral.cs
- BaseCAMarshaler.cs
- DefinitionBase.cs
- ColumnResult.cs
- ToolBarOverflowPanel.cs
- ScriptResourceHandler.cs
- PrinterResolution.cs
- TagPrefixAttribute.cs
- DependentList.cs
- MenuItem.cs
- CellTreeNode.cs
- CodeObjectCreateExpression.cs
- ToolboxCategory.cs
- WaveHeader.cs
- CodeBlockBuilder.cs
- StreamUpgradeAcceptor.cs
- InitiatorSessionSymmetricTransportSecurityProtocol.cs
- MouseCaptureWithinProperty.cs
- RegistryPermission.cs
- TemplateXamlParser.cs
- ToolStripArrowRenderEventArgs.cs
- WorkflowRuntimeSection.cs
- _AutoWebProxyScriptWrapper.cs
- SapiRecoContext.cs
- CryptoApi.cs
- HostingEnvironmentException.cs
- WsdlBuildProvider.cs
- AbstractDataSvcMapFileLoader.cs
- RoutingUtilities.cs
- SafeWaitHandle.cs
- ComContractElement.cs
- CompilationPass2Task.cs
- ChannelCacheSettings.cs
- WebEventCodes.cs
- AppSettingsReader.cs
- ReturnValue.cs
- Image.cs
- CachedFontFace.cs
- Int64Converter.cs
- ScrollBar.cs
- DbParameterCollectionHelper.cs
- RectangleConverter.cs
- RoutedEventHandlerInfo.cs
- CodeMemberProperty.cs
- AmbientValueAttribute.cs
- _ProxyRegBlob.cs
- StrongName.cs
- PrimaryKeyTypeConverter.cs
- ZipIOFileItemStream.cs
- ValidationResult.cs
- BindingsCollection.cs
- EnvironmentPermission.cs
- DesignerAutoFormatCollection.cs
- CallTemplateAction.cs
- NameObjectCollectionBase.cs
- FunctionUpdateCommand.cs
- TextProviderWrapper.cs
- InvokeMethodActivityDesigner.cs
- Size3D.cs
- WindowsSysHeader.cs
- Image.cs
- AssemblyResourceLoader.cs
- DataGrid.cs
- WorkflowQueue.cs
- ToolStripRenderEventArgs.cs
- TableAdapterManagerHelper.cs
- ToolBarOverflowPanel.cs
- ValidatingReaderNodeData.cs
- ReachVisualSerializerAsync.cs
- CapabilitiesPattern.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- Baml2006ReaderContext.cs