Code:
/ DotNET / DotNET / 8.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
- DesignerActionItem.cs
- QilPatternVisitor.cs
- CodeDelegateCreateExpression.cs
- Positioning.cs
- DependencyProperty.cs
- SelectionProviderWrapper.cs
- DataSourceCache.cs
- SQLMoneyStorage.cs
- ImageCollectionCodeDomSerializer.cs
- TerminatorSinks.cs
- DynamicControlParameter.cs
- XmlSchemaAttributeGroupRef.cs
- StorageTypeMapping.cs
- BasePropertyDescriptor.cs
- Pts.cs
- _TimerThread.cs
- ObservableDictionary.cs
- SafeLibraryHandle.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- VarInfo.cs
- SizeValueSerializer.cs
- TemplateComponentConnector.cs
- SqlMethodAttribute.cs
- FileDialog_Vista.cs
- InternalSafeNativeMethods.cs
- OutputScopeManager.cs
- BulletedListEventArgs.cs
- HashMembershipCondition.cs
- Interlocked.cs
- UnsafeNativeMethodsCLR.cs
- AsmxEndpointPickerExtension.cs
- TraceInternal.cs
- TrackBar.cs
- RIPEMD160.cs
- QilNode.cs
- Evidence.cs
- WebPartTransformer.cs
- FixedSOMPageConstructor.cs
- CompatibleIComparer.cs
- AnnotationResourceCollection.cs
- MenuAutomationPeer.cs
- RequestCachePolicyConverter.cs
- DataSetUtil.cs
- Matrix3D.cs
- PngBitmapDecoder.cs
- SocketAddress.cs
- InvokeGenerator.cs
- ClientProxyGenerator.cs
- Graphics.cs
- SiteIdentityPermission.cs
- ObjectSpanRewriter.cs
- DrawingImage.cs
- Latin1Encoding.cs
- _SpnDictionary.cs
- OverflowException.cs
- EntityPropertyMappingAttribute.cs
- querybuilder.cs
- XmlTextEncoder.cs
- DocumentGridContextMenu.cs
- RuleSettings.cs
- EventLogEntryCollection.cs
- DeviceContext2.cs
- Attributes.cs
- WebProxyScriptElement.cs
- XamlFigureLengthSerializer.cs
- ContextStaticAttribute.cs
- XamlReaderHelper.cs
- CommandEventArgs.cs
- AstTree.cs
- SlotInfo.cs
- WebPartConnectionsConnectVerb.cs
- controlskin.cs
- ListControl.cs
- ObjectSerializerFactory.cs
- X509Extension.cs
- AlternateViewCollection.cs
- NativeMethods.cs
- Rotation3DKeyFrameCollection.cs
- HttpDictionary.cs
- AlignmentXValidation.cs
- InkCanvasInnerCanvas.cs
- TableLayoutStyle.cs
- EncryptedType.cs
- TitleStyle.cs
- MethodBody.cs
- WorkflowApplicationCompletedEventArgs.cs
- ConstraintManager.cs
- DbMetaDataFactory.cs
- EntityStoreSchemaFilterEntry.cs
- MappingItemCollection.cs
- RichTextBoxDesigner.cs
- Int32Rect.cs
- ListViewItemSelectionChangedEvent.cs
- PartBasedPackageProperties.cs
- AuthStoreRoleProvider.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- SafeEventLogWriteHandle.cs
- BindValidationContext.cs
- PopupEventArgs.cs
- OpenTypeCommon.cs