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
- ServiceContractDetailViewControl.cs
- DataViewListener.cs
- TextRunCacheImp.cs
- GridView.cs
- NamespaceDecl.cs
- RepeatInfo.cs
- SwitchAttribute.cs
- NullableIntMinMaxAggregationOperator.cs
- CommonDialog.cs
- PresentationSource.cs
- HttpBufferlessInputStream.cs
- StringWriter.cs
- ProtocolState.cs
- Library.cs
- SimpleHandlerBuildProvider.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DetailsViewInsertEventArgs.cs
- ActiveDocumentEvent.cs
- XamlWriter.cs
- MemoryMappedFileSecurity.cs
- HealthMonitoringSectionHelper.cs
- TextAutomationPeer.cs
- ImageMap.cs
- TypeElement.cs
- HybridDictionary.cs
- SqlDataSourceView.cs
- TaiwanLunisolarCalendar.cs
- Model3DCollection.cs
- XamlSerializerUtil.cs
- IdnMapping.cs
- DesignerTransactionCloseEvent.cs
- DbUpdateCommandTree.cs
- EntityContainerEntitySet.cs
- GeometryHitTestResult.cs
- StoreContentChangedEventArgs.cs
- SuspendDesigner.cs
- DecoderFallbackWithFailureFlag.cs
- VisualTreeUtils.cs
- ConcurrencyBehavior.cs
- BindToObject.cs
- Helpers.cs
- ThreadSafeList.cs
- HttpCapabilitiesSectionHandler.cs
- ObjectDataSourceMethodEditor.cs
- _SecureChannel.cs
- TcpChannelHelper.cs
- CachedPathData.cs
- UrlMappingsSection.cs
- TextServicesCompartmentEventSink.cs
- XmlLanguage.cs
- EntityDataSourceDataSelectionPanel.cs
- CommandID.cs
- XmlSchemaParticle.cs
- ConnectionProviderAttribute.cs
- WindowsAuthenticationEventArgs.cs
- Effect.cs
- WindowsGraphics.cs
- LocalizationParserHooks.cs
- LambdaSerializationException.cs
- RawStylusInputReport.cs
- NullableDecimalAverageAggregationOperator.cs
- SystemIcmpV4Statistics.cs
- QueryAsyncResult.cs
- FlowDocumentScrollViewer.cs
- ServiceRoute.cs
- CatalogZone.cs
- DataGridViewColumnHeaderCell.cs
- TextPatternIdentifiers.cs
- CounterSampleCalculator.cs
- ConfigurationErrorsException.cs
- TypeConverterMarkupExtension.cs
- Variable.cs
- ThicknessAnimationBase.cs
- KnownColorTable.cs
- RegisteredDisposeScript.cs
- VisualTransition.cs
- WindowsToolbarAsMenu.cs
- ConfigurationElement.cs
- SqlAliasesReferenced.cs
- CodeTypeDeclarationCollection.cs
- PromptEventArgs.cs
- TemplateBindingExpression.cs
- SimpleFileLog.cs
- ObservableDictionary.cs
- Schema.cs
- CommandConverter.cs
- ModuleConfigurationInfo.cs
- GuidTagList.cs
- RoleService.cs
- ScriptingScriptResourceHandlerSection.cs
- Solver.cs
- BinaryObjectWriter.cs
- ApplyTemplatesAction.cs
- BamlRecords.cs
- OpenTypeLayoutCache.cs
- DataException.cs
- WebControlAdapter.cs
- AddInSegmentDirectoryNotFoundException.cs
- RealizedColumnsBlock.cs
- QilIterator.cs