Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / AttributeProviderAttribute.cs / 1 / AttributeProviderAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System; using System.Security.Permissions; ////// /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")] [AttributeUsage(AttributeTargets.Property)] public class AttributeProviderAttribute : Attribute { private string _typeName; private string _propertyName; ////// /// Creates a new AttributeProviderAttribute object. /// public AttributeProviderAttribute(string typeName) { if (typeName == null) { throw new ArgumentNullException("typeName"); } _typeName = typeName; } ////// /// Creates a new AttributeProviderAttribute object. /// public AttributeProviderAttribute(string typeName, string propertyName) { if (typeName == null) { throw new ArgumentNullException("typeName"); } if (propertyName == null) { throw new ArgumentNullException("propertyName"); } _typeName = typeName; _propertyName = propertyName; } ////// /// Creates a new AttributeProviderAttribute object. /// public AttributeProviderAttribute(Type type) { if (type == null) { throw new ArgumentNullException("type"); } _typeName = type.AssemblyQualifiedName; } ////// /// The TypeName property returns the assembly qualified type name /// passed into the constructor. /// public string TypeName { get { return _typeName; } } ////// /// The TypeName property returns the property name that will be used to query attributes from. /// public string PropertyName { get { return _propertyName; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewComboBoxColumnDesigner.cs
- parserscommon.cs
- ConvertEvent.cs
- TextCompositionManager.cs
- VirtualPathProvider.cs
- MarkupExtensionParser.cs
- Model3D.cs
- SystemParameters.cs
- CustomValidator.cs
- UrlAuthFailedErrorFormatter.cs
- ExecutionContext.cs
- SocketElement.cs
- InvokeSchedule.cs
- DecimalAnimationUsingKeyFrames.cs
- Hash.cs
- PerformanceCounterScope.cs
- DelayedRegex.cs
- CngUIPolicy.cs
- Vector3DAnimation.cs
- TypeConverterAttribute.cs
- TextRenderer.cs
- HwndProxyElementProvider.cs
- PopOutPanel.cs
- DbProviderSpecificTypePropertyAttribute.cs
- PagerStyle.cs
- KeyPullup.cs
- ChtmlTextWriter.cs
- TextTrailingWordEllipsis.cs
- Process.cs
- ToolStripItemTextRenderEventArgs.cs
- CodeSubDirectory.cs
- DataGridViewAccessibleObject.cs
- ZoneMembershipCondition.cs
- CounterSet.cs
- FeatureManager.cs
- TextLine.cs
- Matrix3D.cs
- DataTablePropertyDescriptor.cs
- EditorPartDesigner.cs
- ArithmeticException.cs
- AttachmentCollection.cs
- SizeChangedInfo.cs
- OdbcStatementHandle.cs
- FtpWebResponse.cs
- BufferedStream.cs
- GreaterThanOrEqual.cs
- XPathDocumentIterator.cs
- DataColumnMapping.cs
- DescendentsWalker.cs
- ModuleConfigurationInfo.cs
- SpeakInfo.cs
- ColumnCollection.cs
- CharAnimationBase.cs
- FixedDSBuilder.cs
- XomlCompilerResults.cs
- TextAction.cs
- ImageAnimator.cs
- DataGridViewLinkCell.cs
- Size3DConverter.cs
- PropertyMetadata.cs
- RelationshipEndCollection.cs
- FrameworkContextData.cs
- ConnectionManagementSection.cs
- ProfileServiceManager.cs
- ApplicationActivator.cs
- UnionCqlBlock.cs
- SecurityTokenTypes.cs
- FastEncoder.cs
- XmlILConstructAnalyzer.cs
- ObjectViewFactory.cs
- Collection.cs
- RectangleGeometry.cs
- PropertyToken.cs
- SelectionBorderGlyph.cs
- CollectionBuilder.cs
- TraceFilter.cs
- KeyConstraint.cs
- TreeViewAutomationPeer.cs
- XsltFunctions.cs
- RowUpdatedEventArgs.cs
- SoundPlayer.cs
- KeyedCollection.cs
- ProtocolsConfigurationEntry.cs
- XmlSchemaChoice.cs
- ProxyManager.cs
- IndicShape.cs
- Ticks.cs
- SplashScreenNativeMethods.cs
- WSHttpBindingBase.cs
- Transform3DGroup.cs
- _NegotiateClient.cs
- UnaryNode.cs
- ContainerVisual.cs
- AnnotationResourceChangedEventArgs.cs
- XmlSchemaExporter.cs
- TreeNodeCollection.cs
- ListViewCommandEventArgs.cs
- DataTableClearEvent.cs
- ObjectTag.cs
- IODescriptionAttribute.cs