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
- DropDownHolder.cs
- HttpCacheParams.cs
- EncoderExceptionFallback.cs
- ValidationErrorCollection.cs
- BooleanConverter.cs
- Profiler.cs
- EndpointAddressElementBase.cs
- MonthCalendar.cs
- RotateTransform3D.cs
- RelatedCurrencyManager.cs
- UnsafeNativeMethodsPenimc.cs
- CompilerInfo.cs
- ObjectListComponentEditor.cs
- PropertyGeneratedEventArgs.cs
- Point3DAnimationUsingKeyFrames.cs
- XamlWriter.cs
- EditorAttribute.cs
- SectionInformation.cs
- WebPartZone.cs
- SimpleMailWebEventProvider.cs
- VisualStyleInformation.cs
- FileEnumerator.cs
- DataRecordInternal.cs
- UserValidatedEventArgs.cs
- DataColumnMappingCollection.cs
- XsltInput.cs
- MultiBinding.cs
- HttpListener.cs
- IChannel.cs
- RIPEMD160.cs
- X509CertificateClaimSet.cs
- HtmlControl.cs
- DataSourceView.cs
- MemoryMappedViewAccessor.cs
- SecureConversationVersion.cs
- ProcessHost.cs
- HorizontalAlignConverter.cs
- OutOfProcStateClientManager.cs
- ListViewDataItem.cs
- Rights.cs
- ByteAnimationUsingKeyFrames.cs
- FusionWrap.cs
- Helpers.cs
- PngBitmapDecoder.cs
- Directory.cs
- ProcessThreadCollection.cs
- RoutedEventArgs.cs
- UInt32Converter.cs
- Peer.cs
- ResourceExpressionEditor.cs
- TagNameToTypeMapper.cs
- DetailsViewUpdatedEventArgs.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- WebPartTransformerCollection.cs
- AssemblyUtil.cs
- MaskPropertyEditor.cs
- BitmapMetadataEnumerator.cs
- FusionWrap.cs
- GridSplitterAutomationPeer.cs
- WebServiceMethodData.cs
- StickyNoteContentControl.cs
- COM2Enum.cs
- X509SubjectKeyIdentifierClause.cs
- DataTableExtensions.cs
- SQLDecimalStorage.cs
- Base64Decoder.cs
- CompositeDataBoundControl.cs
- WorkflowInstanceRecord.cs
- NotifyCollectionChangedEventArgs.cs
- BuildProvidersCompiler.cs
- ExpressionBindingCollection.cs
- PkcsMisc.cs
- TextTreeInsertElementUndoUnit.cs
- Peer.cs
- RoutedEventArgs.cs
- UTF7Encoding.cs
- DesignerAttribute.cs
- FlowPanelDesigner.cs
- DataSetMappper.cs
- MimeFormImporter.cs
- FixedLineResult.cs
- FileDialog_Vista.cs
- DataSourceXmlElementAttribute.cs
- Processor.cs
- DragDropManager.cs
- SafeCloseHandleCritical.cs
- SiteOfOriginContainer.cs
- TypedLocationWrapper.cs
- SelectionRangeConverter.cs
- XPathDocument.cs
- Vector3DKeyFrameCollection.cs
- GACMembershipCondition.cs
- DocumentApplication.cs
- CompositeControl.cs
- BindingListCollectionView.cs
- NodeLabelEditEvent.cs
- ScriptControlDescriptor.cs
- SystemUdpStatistics.cs
- RectValueSerializer.cs
- SqlDataSourceCommandEventArgs.cs