Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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; } } } } // 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
- WebPartCatalogCloseVerb.cs
- StateDesigner.Layouts.cs
- ArgumentValueSerializer.cs
- TextInfo.cs
- WebPartAddingEventArgs.cs
- SymmetricKeyWrap.cs
- XmlWhitespace.cs
- RetrieveVirtualItemEventArgs.cs
- DataGridViewAutoSizeModeEventArgs.cs
- AxisAngleRotation3D.cs
- MenuItemBinding.cs
- ListViewDeleteEventArgs.cs
- MailAddress.cs
- Msec.cs
- LineSegment.cs
- HttpErrorTraceRecord.cs
- MSAANativeProvider.cs
- objectquery_tresulttype.cs
- SmiSettersStream.cs
- ListMarkerLine.cs
- StandardOleMarshalObject.cs
- AlphaSortedEnumConverter.cs
- XmlSerializationReader.cs
- OletxEnlistment.cs
- BindingNavigator.cs
- pingexception.cs
- HtmlProps.cs
- ThemeableAttribute.cs
- MonthChangedEventArgs.cs
- StatusInfoItem.cs
- ColorConverter.cs
- WindowsFont.cs
- Stacktrace.cs
- XmlSchemaAttributeGroup.cs
- CurrentChangingEventArgs.cs
- BufferedGraphicsContext.cs
- InvalidCastException.cs
- sqlnorm.cs
- TextSelection.cs
- XmlLoader.cs
- DebugHandleTracker.cs
- EventLogStatus.cs
- TableChangeProcessor.cs
- TypeToken.cs
- ActivityTypeResolver.xaml.cs
- WebServiceEnumData.cs
- DataViewSettingCollection.cs
- WindowsTab.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- IntSecurity.cs
- SafeRegistryHandle.cs
- PeerTransportElement.cs
- QilList.cs
- XsltInput.cs
- ReadOnlyDataSource.cs
- Int64AnimationUsingKeyFrames.cs
- ThemeInfoAttribute.cs
- ViewSimplifier.cs
- MetafileHeader.cs
- SqlCachedBuffer.cs
- BatchStream.cs
- LineServicesCallbacks.cs
- validation.cs
- FreezableOperations.cs
- ReadOnlyPropertyMetadata.cs
- SafeNativeMethods.cs
- DomainConstraint.cs
- SelectionList.cs
- DataKey.cs
- SQLInt64.cs
- SqlDataSourceCache.cs
- ImageBrush.cs
- TreeViewItemAutomationPeer.cs
- WebWorkflowRole.cs
- SQLInt64.cs
- QilInvokeEarlyBound.cs
- ZipIOLocalFileBlock.cs
- ReadWriteSpinLock.cs
- ConstraintCollection.cs
- VariableModifiersHelper.cs
- DateTimeStorage.cs
- ToolstripProfessionalRenderer.cs
- DrawListViewItemEventArgs.cs
- Documentation.cs
- RowBinding.cs
- XamlTypeMapper.cs
- TaiwanCalendar.cs
- XmlTextWriter.cs
- WizardSideBarListControlItem.cs
- IndexOutOfRangeException.cs
- ColorIndependentAnimationStorage.cs
- MouseEvent.cs
- EventManager.cs
- PerformanceCounterPermission.cs
- PropertyKey.cs
- SerializationBinder.cs
- OracleInfoMessageEventArgs.cs
- UInt16Converter.cs
- VideoDrawing.cs
- OperationInfo.cs