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
- SQLRoleProvider.cs
- XPathEmptyIterator.cs
- WsrmFault.cs
- XmlChildNodes.cs
- ParseHttpDate.cs
- LogLogRecord.cs
- FormView.cs
- MetadataPropertyCollection.cs
- XappLauncher.cs
- TraceUtils.cs
- LazyTextWriterCreator.cs
- DataGridViewCheckBoxCell.cs
- EventSourceCreationData.cs
- ValueOfAction.cs
- Label.cs
- ElementInit.cs
- Matrix3DValueSerializer.cs
- ImageAttributes.cs
- ScrollBarAutomationPeer.cs
- SqlConnectionHelper.cs
- XPathNode.cs
- OrthographicCamera.cs
- LinqDataSourceView.cs
- APCustomTypeDescriptor.cs
- DataBindEngine.cs
- CallInfo.cs
- RelationshipDetailsRow.cs
- DocumentOrderComparer.cs
- BitmapPalettes.cs
- SkewTransform.cs
- Fonts.cs
- RegisteredScript.cs
- ColorInterpolationModeValidation.cs
- FieldAccessException.cs
- RadioButtonList.cs
- JapaneseLunisolarCalendar.cs
- Point3DCollection.cs
- RoleService.cs
- ApplicationServiceManager.cs
- SecurityDocument.cs
- ParseChildrenAsPropertiesAttribute.cs
- SecureConversationVersion.cs
- HtmlImage.cs
- wgx_commands.cs
- Tablet.cs
- COSERVERINFO.cs
- MessageBox.cs
- UpdatePanel.cs
- CompletedAsyncResult.cs
- PermissionSetTriple.cs
- WindowsToolbarAsMenu.cs
- DeploymentSectionCache.cs
- SqlPersistenceProviderFactory.cs
- MemberHolder.cs
- BitmapEffectvisualstate.cs
- RestHandler.cs
- ExcludePathInfo.cs
- MultiBindingExpression.cs
- ColorConvertedBitmapExtension.cs
- ECDiffieHellmanPublicKey.cs
- SerializationInfo.cs
- ResourceDisplayNameAttribute.cs
- PartialClassGenerationTaskInternal.cs
- InfoCardX509Validator.cs
- MediaContext.cs
- LineProperties.cs
- MobileTextWriter.cs
- tooltip.cs
- CurrentTimeZone.cs
- AutomationPropertyInfo.cs
- DesignerDataRelationship.cs
- XmlWrappingReader.cs
- DisposableCollectionWrapper.cs
- DbSource.cs
- PropertyRef.cs
- EntityDataSourceValidationException.cs
- ApplicationHost.cs
- BitmapData.cs
- Stack.cs
- VBIdentifierDesigner.xaml.cs
- BezierSegment.cs
- DbgCompiler.cs
- EntityCodeGenerator.cs
- HuffCodec.cs
- DataSourceSelectArguments.cs
- HtmlButton.cs
- XmlSchemaSimpleContent.cs
- Expression.cs
- DataTableMapping.cs
- DefaultAsyncDataDispatcher.cs
- ConfigXmlElement.cs
- XmlTextWriter.cs
- SQLByte.cs
- Compiler.cs
- Psha1DerivedKeyGenerator.cs
- SoapHeaders.cs
- XmlAnyElementAttribute.cs
- ResXBuildProvider.cs
- LayoutManager.cs
- AppliedDeviceFiltersDialog.cs