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
- SerializationEventsCache.cs
- MessageBox.cs
- NotFiniteNumberException.cs
- Executor.cs
- HostedImpersonationContext.cs
- LinqDataSource.cs
- HtmlInputPassword.cs
- OrthographicCamera.cs
- WrappedOptions.cs
- ProfileService.cs
- TransactionValidationBehavior.cs
- UndoEngine.cs
- SuppressIldasmAttribute.cs
- StringUtil.cs
- InvariantComparer.cs
- TheQuery.cs
- VisualStateGroup.cs
- ControlEvent.cs
- InputLanguageSource.cs
- TraceEventCache.cs
- GeneratedContractType.cs
- Ops.cs
- BinHexEncoder.cs
- XsdValidatingReader.cs
- OleDbDataAdapter.cs
- IxmlLineInfo.cs
- UniformGrid.cs
- ServerIdentity.cs
- SerializationFieldInfo.cs
- FontDriver.cs
- XPathConvert.cs
- PathFigure.cs
- FormViewModeEventArgs.cs
- HttpRawResponse.cs
- ByteAnimationBase.cs
- ZoneLinkButton.cs
- EdmToObjectNamespaceMap.cs
- SystemBrushes.cs
- FlowDocumentReader.cs
- remotingproxy.cs
- ComponentDispatcherThread.cs
- GcHandle.cs
- SubpageParagraph.cs
- HwndStylusInputProvider.cs
- MetadataPropertyvalue.cs
- SmtpTransport.cs
- SrgsRuleRef.cs
- XpsInterleavingPolicy.cs
- TextWriter.cs
- HtmlCommandAdapter.cs
- EndOfStreamException.cs
- Size3DConverter.cs
- IfAction.cs
- TemplateKey.cs
- Expr.cs
- Registry.cs
- DisplayNameAttribute.cs
- OdbcInfoMessageEvent.cs
- QuaternionRotation3D.cs
- GroupQuery.cs
- FontFamilyIdentifier.cs
- AutomationElementCollection.cs
- FileCodeGroup.cs
- PermissionSetTriple.cs
- DiagnosticTraceRecords.cs
- MediaElement.cs
- Win32PrintDialog.cs
- ImageFormat.cs
- OutOfMemoryException.cs
- XPathException.cs
- SecurityTokenAuthenticator.cs
- CodeDirectiveCollection.cs
- ActivityBindForm.Designer.cs
- ContentDisposition.cs
- UserControlCodeDomTreeGenerator.cs
- ChineseLunisolarCalendar.cs
- NamespaceInfo.cs
- MSAAEventDispatcher.cs
- PartManifestEntry.cs
- ParameterEditorUserControl.cs
- XXXOnTypeBuilderInstantiation.cs
- MasterPage.cs
- SamlConstants.cs
- StaticFileHandler.cs
- OleDbConnectionFactory.cs
- PortCache.cs
- CollectionChange.cs
- XmlSchemaSimpleTypeUnion.cs
- CodeAccessPermission.cs
- coordinator.cs
- ProviderUtil.cs
- PrePrepareMethodAttribute.cs
- AsmxEndpointPickerExtension.cs
- XmlChildEnumerator.cs
- PartitionResolver.cs
- DoubleCollectionConverter.cs
- SignedInfo.cs
- ReferentialConstraint.cs
- ValidatingReaderNodeData.cs
- MaskedTextBoxDesignerActionList.cs