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
- OdbcFactory.cs
- NextPreviousPagerField.cs
- StylusPlugInCollection.cs
- ShaderRenderModeValidation.cs
- XmlSchemaAppInfo.cs
- StylusPointPropertyInfo.cs
- DataPagerField.cs
- GeometryHitTestParameters.cs
- DecoratedNameAttribute.cs
- ConstructorArgumentAttribute.cs
- ContextMenuStripGroup.cs
- NativeMethods.cs
- Object.cs
- StatusBarDrawItemEvent.cs
- ObjectNotFoundException.cs
- HtmlPageAdapter.cs
- SubstitutionList.cs
- InputReport.cs
- CustomError.cs
- BasicExpandProvider.cs
- DataGridViewComboBoxColumn.cs
- SapiRecognizer.cs
- WebPartChrome.cs
- SqlNotificationRequest.cs
- PrincipalPermissionMode.cs
- MatchingStyle.cs
- EnterpriseServicesHelper.cs
- DiscoveryOperationContextExtension.cs
- Transform.cs
- TimeSpanFormat.cs
- MessageSecurityOverMsmq.cs
- FormsAuthenticationConfiguration.cs
- LinqDataSourceEditData.cs
- PageTheme.cs
- OdbcCommand.cs
- ScriptingWebServicesSectionGroup.cs
- ViewPort3D.cs
- FocusManager.cs
- ImportCatalogPart.cs
- AnnotationResourceChangedEventArgs.cs
- CodeIndexerExpression.cs
- AssemblyContextControlItem.cs
- EntityProxyTypeInfo.cs
- SubstitutionResponseElement.cs
- GlyphRunDrawing.cs
- PageAsyncTask.cs
- EmptyEnumerator.cs
- DecimalConstantAttribute.cs
- JapaneseCalendar.cs
- PLINQETWProvider.cs
- CustomPopupPlacement.cs
- GeneralTransformGroup.cs
- PromptStyle.cs
- MarshalDirectiveException.cs
- SqlTriggerAttribute.cs
- FacetValues.cs
- FrameworkReadOnlyPropertyMetadata.cs
- HttpCacheVaryByContentEncodings.cs
- GeneralTransformGroup.cs
- NumberSubstitution.cs
- SiteMapDataSource.cs
- SafeSystemMetrics.cs
- Point3DAnimationUsingKeyFrames.cs
- PackageFilter.cs
- XpsLiterals.cs
- KeysConverter.cs
- ImageListUtils.cs
- ConsoleTraceListener.cs
- DeclaredTypeElement.cs
- SqlReferenceCollection.cs
- SqlCacheDependencySection.cs
- QueryResponse.cs
- ControlValuePropertyAttribute.cs
- ClientTargetSection.cs
- TraceHwndHost.cs
- SqlClientPermission.cs
- Int64Converter.cs
- ReliableSessionBindingElement.cs
- PerformanceCounterPermission.cs
- FormViewDeleteEventArgs.cs
- IfAction.cs
- DropDownButton.cs
- WebPartCloseVerb.cs
- ISAPIRuntime.cs
- WindowsListViewSubItem.cs
- CellParaClient.cs
- FormatConvertedBitmap.cs
- GlobalizationSection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- CacheOutputQuery.cs
- StaticFileHandler.cs
- CompilationLock.cs
- FileStream.cs
- C14NUtil.cs
- NotifyCollectionChangedEventArgs.cs
- DecimalAnimationBase.cs
- UnsafeNativeMethods.cs
- RoutedEventArgs.cs
- AssemblyCollection.cs
- BaseCodeDomTreeGenerator.cs