Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / AttributeUsageAttribute.cs / 1 / AttributeUsageAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: AttributeUsageAttribute ** ** ** Purpose: The class denotes how to specify the usage of an attribute ** ** ===========================================================*/ namespace System { using System.Reflection; /* By default, attributes are inherited and multiple attributes are not allowed */ [AttributeUsage(AttributeTargets.Class, Inherited = true),Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public sealed class AttributeUsageAttribute : Attribute { internal AttributeTargets m_attributeTarget = AttributeTargets.All; // Defaults to all internal bool m_allowMultiple = false; // Defaults to false internal bool m_inherited = true; // Defaults to true internal static AttributeUsageAttribute Default = new AttributeUsageAttribute(AttributeTargets.All); //Constructors public AttributeUsageAttribute(AttributeTargets validOn) { m_attributeTarget = validOn; } internal AttributeUsageAttribute(AttributeTargets validOn, bool allowMultiple, bool inherited) { m_attributeTarget = validOn; m_allowMultiple = allowMultiple; m_inherited = inherited; } //Properties public AttributeTargets ValidOn { get{ return m_attributeTarget; } } public bool AllowMultiple { get { return m_allowMultiple; } set { m_allowMultiple = value; } } public bool Inherited { get { return m_inherited; } set { m_inherited = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LockCookie.cs
- SelectorItemAutomationPeer.cs
- ToggleProviderWrapper.cs
- DbTransaction.cs
- initElementDictionary.cs
- TrustManager.cs
- safex509handles.cs
- Inflater.cs
- InvalidEnumArgumentException.cs
- DialogWindow.cs
- QilInvoke.cs
- UIElement3DAutomationPeer.cs
- ZipIOFileItemStream.cs
- ErrorActivity.cs
- Icon.cs
- AssemblyInfo.cs
- SrgsText.cs
- PathNode.cs
- BamlReader.cs
- PropertyEmitter.cs
- ObjectTag.cs
- ListViewItemEventArgs.cs
- IdentitySection.cs
- ActiveXSite.cs
- StyleBamlTreeBuilder.cs
- ComponentRenameEvent.cs
- SqlTriggerAttribute.cs
- WebBodyFormatMessageProperty.cs
- StructuredTypeEmitter.cs
- InputManager.cs
- Vector3DIndependentAnimationStorage.cs
- Int16Converter.cs
- TypedCompletedAsyncResult.cs
- ToolboxItem.cs
- WebCodeGenerator.cs
- securitycriticaldata.cs
- XmlSerializationReader.cs
- SafePEFileHandle.cs
- DocumentPageView.cs
- DATA_BLOB.cs
- Internal.cs
- BrowsableAttribute.cs
- XmlConvert.cs
- PrinterResolution.cs
- OrderByBuilder.cs
- HostVisual.cs
- ProfileModule.cs
- CodeMemberEvent.cs
- ExternalException.cs
- HandleExceptionArgs.cs
- Peer.cs
- WindowsFormsEditorServiceHelper.cs
- WebServiceMethodData.cs
- SelectionPattern.cs
- ApplicationGesture.cs
- DataBoundControlAdapter.cs
- ReadOnlyDictionary.cs
- FamilyMapCollection.cs
- UnauthorizedAccessException.cs
- PersonalizablePropertyEntry.cs
- InstanceKeyNotReadyException.cs
- PasswordDeriveBytes.cs
- SecurityResources.cs
- ExceptionHandlersDesigner.cs
- HtmlTableCellCollection.cs
- ProcessModelInfo.cs
- TableCell.cs
- ToolZone.cs
- HwndHostAutomationPeer.cs
- MissingMethodException.cs
- HttpResponseInternalWrapper.cs
- URL.cs
- HideDisabledControlAdapter.cs
- TaskHelper.cs
- DataTableCollection.cs
- SerializationException.cs
- ReservationNotFoundException.cs
- BitStream.cs
- LambdaCompiler.Generated.cs
- SectionInformation.cs
- ToolStripPanel.cs
- PlainXmlSerializer.cs
- keycontainerpermission.cs
- SqlRowUpdatingEvent.cs
- DbgCompiler.cs
- SymLanguageVendor.cs
- FloatAverageAggregationOperator.cs
- UriWriter.cs
- ValidationErrorCollection.cs
- HashHelper.cs
- TypeToArgumentTypeConverter.cs
- BindableAttribute.cs
- ValidatorUtils.cs
- HttpCookie.cs
- TextFormatterContext.cs
- PhysicalAddress.cs
- TextEffectResolver.cs
- OdbcTransaction.cs
- StylusPoint.cs
- BooleanSwitch.cs