Code:
/ FX-1434 / FX-1434 / 1.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
- OdbcHandle.cs
- StandardRuntimeEnumValidator.cs
- RenderingBiasValidation.cs
- XPathItem.cs
- ZipIOModeEnforcingStream.cs
- HtmlControlPersistable.cs
- MatrixAnimationBase.cs
- StretchValidation.cs
- ClientUtils.cs
- HMACSHA256.cs
- TypeConverter.cs
- ProvidePropertyAttribute.cs
- Int16Converter.cs
- DecoratedNameAttribute.cs
- ProxyWebPartManager.cs
- CompilationAssemblyInstallComponent.cs
- HwndSource.cs
- BaseTreeIterator.cs
- ErrorProvider.cs
- GlobalizationAssembly.cs
- EnumBuilder.cs
- ErrorWebPart.cs
- CompensatableTransactionScopeActivityDesigner.cs
- UncommonField.cs
- QuaternionAnimation.cs
- TogglePattern.cs
- DataRelationPropertyDescriptor.cs
- MessageHeaders.cs
- BatchParser.cs
- FrameworkTemplate.cs
- DataObjectMethodAttribute.cs
- AppDomainAttributes.cs
- RuleSetDialog.Designer.cs
- Decimal.cs
- CatalogPart.cs
- SerializationSectionGroup.cs
- UrlPath.cs
- ObjectStateEntryDbDataRecord.cs
- UncommonField.cs
- UnaryOperationBinder.cs
- LayoutEditorPart.cs
- BitmapMetadataEnumerator.cs
- RoutingTable.cs
- NullToBooleanConverter.cs
- VectorCollection.cs
- QueryExecutionOption.cs
- ConfigurationElementProperty.cs
- RawTextInputReport.cs
- MonthCalendar.cs
- XmlSerializerSection.cs
- DynamicValueConverter.cs
- WhiteSpaceTrimStringConverter.cs
- ISessionStateStore.cs
- WebPartTransformerCollection.cs
- StrongNameKeyPair.cs
- UserControlCodeDomTreeGenerator.cs
- WindowsGraphics.cs
- ConfigurationLoader.cs
- PropertyEntry.cs
- RectKeyFrameCollection.cs
- SignedPkcs7.cs
- WebPartCollection.cs
- ProxyWebPartConnectionCollection.cs
- HierarchicalDataSourceControl.cs
- FlowNode.cs
- X509ChainPolicy.cs
- BreakRecordTable.cs
- GroupDescription.cs
- HMACSHA256.cs
- XmlAttributeCache.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- FontNameConverter.cs
- ListBindableAttribute.cs
- ReferenceEqualityComparer.cs
- BamlTreeUpdater.cs
- BinarySecretSecurityToken.cs
- SystemIPv4InterfaceProperties.cs
- TextRangeEditLists.cs
- SerialPort.cs
- ReflectionPermission.cs
- EventLogger.cs
- InitializerFacet.cs
- SecurityToken.cs
- InputMethod.cs
- RoutedPropertyChangedEventArgs.cs
- TypeGeneratedEventArgs.cs
- UTF32Encoding.cs
- RequestCachePolicyConverter.cs
- SolidColorBrush.cs
- PageFunction.cs
- PermissionSetTriple.cs
- ArrangedElement.cs
- DomNameTable.cs
- PropertyConverter.cs
- VirtualPathExtension.cs
- TimeEnumHelper.cs
- ConsumerConnectionPoint.cs
- WmlControlAdapter.cs
- _AutoWebProxyScriptEngine.cs
- SecUtil.cs