Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / AttributeProviderAttribute.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StubHelpers.cs
- DesignRelationCollection.cs
- RectangleF.cs
- XmlBufferReader.cs
- TypeValidationEventArgs.cs
- XmlTextReaderImpl.cs
- Debugger.cs
- ActivityBuilder.cs
- ReferencedType.cs
- SHA384Cng.cs
- RegexReplacement.cs
- Pts.cs
- XmlCharacterData.cs
- BitmapImage.cs
- PageClientProxyGenerator.cs
- DataListItemCollection.cs
- DecoderExceptionFallback.cs
- ScriptManagerProxy.cs
- StackSpiller.Generated.cs
- Fx.cs
- X509ClientCertificateAuthentication.cs
- OdbcException.cs
- ObjectNotFoundException.cs
- TableLayoutColumnStyleCollection.cs
- InstalledFontCollection.cs
- ManagementBaseObject.cs
- _UriTypeConverter.cs
- DragAssistanceManager.cs
- ConnectivityStatus.cs
- Registry.cs
- WindowInteractionStateTracker.cs
- IOException.cs
- TextSerializer.cs
- EDesignUtil.cs
- SendActivityDesigner.cs
- Filter.cs
- SafeFileHandle.cs
- SymLanguageVendor.cs
- JapaneseLunisolarCalendar.cs
- HTMLTagNameToTypeMapper.cs
- SqlRowUpdatedEvent.cs
- TreeNodeConverter.cs
- TraceHandler.cs
- ButtonBase.cs
- PageVisual.cs
- ChtmlFormAdapter.cs
- LineSegment.cs
- VerificationException.cs
- PerformanceCountersElement.cs
- TrackingMemoryStreamFactory.cs
- ToggleButtonAutomationPeer.cs
- SurrogateEncoder.cs
- ResourceBinder.cs
- Journaling.cs
- TabItemAutomationPeer.cs
- ResXResourceReader.cs
- RepeatBehaviorConverter.cs
- FlowLayout.cs
- ErrorWrapper.cs
- KeysConverter.cs
- XmlSortKeyAccumulator.cs
- LinqDataSource.cs
- NotSupportedException.cs
- DNS.cs
- BooleanStorage.cs
- ClientUtils.cs
- ListManagerBindingsCollection.cs
- DateRangeEvent.cs
- WebPartEditorOkVerb.cs
- UnionQueryOperator.cs
- DataListItemCollection.cs
- OleDbDataAdapter.cs
- OleDbConnectionInternal.cs
- PageFunction.cs
- MemberCollection.cs
- ConfigXmlText.cs
- FormViewPageEventArgs.cs
- SubqueryRules.cs
- ToolStripCodeDomSerializer.cs
- SmtpCommands.cs
- StagingAreaInputItem.cs
- FileClassifier.cs
- PasswordRecovery.cs
- SoapReflector.cs
- XmlNodeWriter.cs
- SqlFlattener.cs
- WebZone.cs
- PopupEventArgs.cs
- SystemSounds.cs
- HwndSourceKeyboardInputSite.cs
- BindingContext.cs
- FileDialogPermission.cs
- _FtpControlStream.cs
- TCPListener.cs
- XAMLParseException.cs
- WindowsIdentity.cs
- WebPartMinimizeVerb.cs
- AssertUtility.cs
- MsmqDecodeHelper.cs
- JsonEncodingStreamWrapper.cs