Attribute Class
Represents the base class for custom attributes.
Assembly: mscorlib (in mscorlib.dll)
The Attribute class associates predefined system information or user-defined custom information with a target element. A target element can be an assembly, class, constructor, delegate, enum, event, field, interface, method, portable executable file module, parameter, property, return value, struct, or another attribute.
Information provided by an attribute is also known as metadata. Metadata can be examined at run time by your application to control how your program processes data, or before run time by external tools to control how your application itself is processed or maintained. For example, the .NET Framework predefines and uses attribute types to control run-time behavior, and some programming languages use attribute types to represent language features not directly supported by the .NET Framework common type system.
All attribute types derive directly or indirectly from the Attribute class. Attributes can be applied to any target element; multiple attributes can be applied to the same target element; and attributes can be inherited by an element derived from a target element. Use the AttributeTargets class to specify the target element to which the attribute is applied.
The Attribute class provides convenient methods to retrieve and test custom attributes. For more information about using attributes, see Applying Attributes and Extending Metadata Using Attributes.
The following code example demonstrates the usage of Attribute.
using namespace System; using namespace System::Reflection; // An enumeration of animals. Start at 1 (0 = uninitialized). public enum class Animal { // Pets. Dog = 1, Cat, Bird }; // A custom attribute to allow a target to have a pet. public ref class AnimalTypeAttribute: public Attribute { public: // The constructor is called when the attribute is set. AnimalTypeAttribute( Animal pet ) { thePet = pet; } protected: // Keep a variable internally ... Animal thePet; public: property Animal Pet { // .. and show a copy to the outside world. Animal get() { return thePet; } void set( Animal value ) { thePet = value; } } }; // A test class where each method has its own pet. ref class AnimalTypeTestClass { public: [AnimalType(Animal::Dog)] void DogMethod(){} [AnimalType(Animal::Cat)] void CatMethod(){} [AnimalType(Animal::Bird)] void BirdMethod(){} }; int main() { AnimalTypeTestClass^ testClass = gcnew AnimalTypeTestClass; Type^ type = testClass->GetType(); // Iterate through all the methods of the class. System::Collections::IEnumerator^ myEnum = type->GetMethods()->GetEnumerator(); while ( myEnum->MoveNext() ) { MethodInfo^ mInfo = safe_cast<MethodInfo^>(myEnum->Current); // Iterate through all the Attributes for each method. System::Collections::IEnumerator^ myEnum1 = Attribute::GetCustomAttributes( mInfo )->GetEnumerator(); while ( myEnum1->MoveNext() ) { Attribute^ attr = safe_cast<Attribute^>(myEnum1->Current); // Check for the AnimalType attribute. if ( attr->GetType() == AnimalTypeAttribute::typeid ) Console::WriteLine( "Method {0} has a pet {1} attribute.", mInfo->Name, (dynamic_cast<AnimalTypeAttribute^>(attr))->Pet ); } } } /* * Output: * Method DogMethod has a pet Dog attribute. * Method CatMethod has a pet Cat attribute. * Method BirdMethod has a pet Bird attribute. */
System::Attribute
Microsoft.Build.Framework::LoadInSeparateAppDomainAttribute
Microsoft.Build.Framework::OutputAttribute
Microsoft.Build.Framework::RequiredAttribute
Microsoft.Build.Framework::RequiredRuntimeAttribute
Microsoft.JScript::Expando
Microsoft.JScript::Hide
Microsoft.JScript::JSFunctionAttribute
Microsoft.JScript::NotRecommended
Microsoft.JScript::Override
Microsoft.JScript::ReferenceAttribute
Microsoft.ManagementConsole.Advanced::ExtendsNodeTypeAttribute
Microsoft.ManagementConsole::NodeTypeAttribute
Microsoft.ManagementConsole::PublishesNodeTypeAttribute
Microsoft.ManagementConsole::SnapInAboutAttribute
Microsoft.ManagementConsole::SnapInHelpTopicAttribute
Microsoft.ManagementConsole::SnapInLinkedHelpTopicAttribute
Microsoft.ManagementConsole::SnapInSettingsAttribute
Microsoft.SqlServer.Server::SqlFacetAttribute
Microsoft.SqlServer.Server::SqlFunctionAttribute
Microsoft.SqlServer.Server::SqlProcedureAttribute
Microsoft.SqlServer.Server::SqlTriggerAttribute
Microsoft.SqlServer.Server::SqlUserDefinedAggregateAttribute
Microsoft.SqlServer.Server::SqlUserDefinedTypeAttribute
Microsoft.VisualBasic::ComClassAttribute
Microsoft.VisualBasic.CompilerServices::DesignerGeneratedAttribute
Microsoft.VisualBasic.CompilerServices::OptionCompareAttribute
Microsoft.VisualBasic.CompilerServices::OptionTextAttribute
Microsoft.VisualBasic.CompilerServices::StandardModuleAttribute
Microsoft.VisualBasic::HideModuleNameAttribute
Microsoft.VisualBasic::MyGroupCollectionAttribute
Microsoft.VisualBasic::VBFixedArrayAttribute
Microsoft.VisualBasic::VBFixedStringAttribute
Microsoft.VisualC::DebugInfoInPDBAttribute
Microsoft.VisualC::DecoratedNameAttribute
Microsoft.VisualC::MiscellaneousBitsAttribute
Microsoft.Vsa::VsaModule
System.AddIn::AddInAttribute
System.AddIn.Pipeline::AddInAdapterAttribute
System.AddIn.Pipeline::AddInBaseAttribute
System.AddIn.Pipeline::AddInContractAttribute
System.AddIn.Pipeline::HostAdapterAttribute
System.AddIn.Pipeline::QualificationDataAttribute
System::AttributeUsageAttribute
System::CLSCompliantAttribute
System.CodeDom.Compiler::GeneratedCodeAttribute
System.ComponentModel::AmbientValueAttribute
System.ComponentModel::AttributeProviderAttribute
System.ComponentModel::BindableAttribute
System.ComponentModel::BrowsableAttribute
System.ComponentModel::CategoryAttribute
System.ComponentModel::ComplexBindingPropertiesAttribute
System.ComponentModel::DataObjectAttribute
System.ComponentModel::DataObjectFieldAttribute
System.ComponentModel::DataObjectMethodAttribute
System.ComponentModel::DefaultBindingPropertyAttribute
System.ComponentModel::DefaultEventAttribute
System.ComponentModel::DefaultPropertyAttribute
System.ComponentModel::DefaultValueAttribute
System.ComponentModel::DescriptionAttribute
System.ComponentModel.Design::HelpKeywordAttribute
System.ComponentModel.Design.Serialization::DefaultSerializationProviderAttribute
System.ComponentModel.Design.Serialization::DesignerSerializerAttribute
System.ComponentModel.Design.Serialization::RootDesignerSerializerAttribute
System.ComponentModel::DesignerAttribute
System.ComponentModel::DesignerCategoryAttribute
System.ComponentModel::DesignerSerializationVisibilityAttribute
System.ComponentModel::DesignOnlyAttribute
System.ComponentModel::DesignTimeVisibleAttribute
System.ComponentModel::DisplayNameAttribute
System.ComponentModel::EditorAttribute
System.ComponentModel::EditorBrowsableAttribute
System.ComponentModel::ExtenderProvidedPropertyAttribute
System.ComponentModel::ImmutableObjectAttribute
System.ComponentModel::InheritanceAttribute
System.ComponentModel::InitializationEventAttribute
System.ComponentModel::InstallerTypeAttribute
System.ComponentModel::LicenseProviderAttribute
System.ComponentModel::ListBindableAttribute
System.ComponentModel::LocalizableAttribute
System.ComponentModel::LookupBindingPropertiesAttribute
System.ComponentModel::MergablePropertyAttribute
System.ComponentModel::NotifyParentPropertyAttribute
System.ComponentModel::ParenthesizePropertyNameAttribute
System.ComponentModel::PasswordPropertyTextAttribute
System.ComponentModel::PropertyFilterAttribute
System.ComponentModel::PropertyTabAttribute
System.ComponentModel::ProvidePropertyAttribute
System.ComponentModel::ReadOnlyAttribute
System.ComponentModel::RecommendedAsConfigurableAttribute
System.ComponentModel::RefreshPropertiesAttribute
System.ComponentModel::RunInstallerAttribute
System.ComponentModel::SettingsBindableAttribute
System.ComponentModel::ToolboxItemAttribute
System.ComponentModel::ToolboxItemFilterAttribute
System.ComponentModel::TypeConverterAttribute
System.ComponentModel::TypeDescriptionProviderAttribute
System.Configuration::ConfigurationCollectionAttribute
System.Configuration::ConfigurationPropertyAttribute
System.Configuration::ConfigurationValidatorAttribute
System.Configuration::DefaultSettingValueAttribute
System.Configuration::NoSettingsVersionUpgradeAttribute
System.Configuration::SettingAttribute
System.Configuration::SettingsDescriptionAttribute
System.Configuration::SettingsGroupDescriptionAttribute
System.Configuration::SettingsGroupNameAttribute
System.Configuration::SettingsManageabilityAttribute
System.Configuration::SettingsProviderAttribute
System.Configuration::SettingsSerializeAsAttribute
System.Configuration::SpecialSettingAttribute
System::ContextStaticAttribute
System.Data.Common::DbProviderSpecificTypePropertyAttribute
System.Data.Linq.Mapping::DataAttribute
System.Data.Linq.Mapping::DatabaseAttribute
System.Data.Linq.Mapping::FunctionAttribute
System.Data.Linq.Mapping::InheritanceMappingAttribute
System.Data.Linq.Mapping::ParameterAttribute
System.Data.Linq.Mapping::ProviderAttribute
System.Data.Linq.Mapping::ResultTypeAttribute
System.Data.Linq.Mapping::TableAttribute
System.Diagnostics.CodeAnalysis::SuppressMessageAttribute
System.Diagnostics::ConditionalAttribute
System.Diagnostics::DebuggableAttribute
System.Diagnostics::DebuggerBrowsableAttribute
System.Diagnostics::DebuggerDisplayAttribute
System.Diagnostics::DebuggerHiddenAttribute
System.Diagnostics::DebuggerNonUserCodeAttribute
System.Diagnostics::DebuggerStepperBoundaryAttribute
System.Diagnostics::DebuggerStepThroughAttribute
System.Diagnostics::DebuggerTypeProxyAttribute
System.Diagnostics::DebuggerVisualizerAttribute
System.Diagnostics::SwitchAttribute
System.Diagnostics::SwitchLevelAttribute
System.DirectoryServices.AccountManagement::DirectoryObjectClassAttribute
System.DirectoryServices.AccountManagement::DirectoryPropertyAttribute
System.DirectoryServices.AccountManagement::DirectoryRdnPrefixAttribute
System.Drawing::ToolboxBitmapAttribute
System.EnterpriseServices::ApplicationAccessControlAttribute
System.EnterpriseServices::ApplicationActivationAttribute
System.EnterpriseServices::ApplicationIDAttribute
System.EnterpriseServices::ApplicationNameAttribute
System.EnterpriseServices::ApplicationQueuingAttribute
System.EnterpriseServices::AutoCompleteAttribute
System.EnterpriseServices.CompensatingResourceManager::ApplicationCrmEnabledAttribute
System.EnterpriseServices::ComponentAccessControlAttribute
System.EnterpriseServices::COMTIIntrinsicsAttribute
System.EnterpriseServices::ConstructionEnabledAttribute
System.EnterpriseServices::DescriptionAttribute
System.EnterpriseServices::EventClassAttribute
System.EnterpriseServices::EventTrackingEnabledAttribute
System.EnterpriseServices::ExceptionClassAttribute
System.EnterpriseServices::IISIntrinsicsAttribute
System.EnterpriseServices::InterfaceQueuingAttribute
System.EnterpriseServices::JustInTimeActivationAttribute
System.EnterpriseServices::LoadBalancingSupportedAttribute
System.EnterpriseServices::MustRunInClientContextAttribute
System.EnterpriseServices::ObjectPoolingAttribute
System.EnterpriseServices::PrivateComponentAttribute
System.EnterpriseServices::SecureMethodAttribute
System.EnterpriseServices::SecurityRoleAttribute
System.EnterpriseServices::SynchronizationAttribute
System.EnterpriseServices::TransactionAttribute
System::FlagsAttribute
System::LoaderOptimizationAttribute
System.Management.Instrumentation::IgnoreMemberAttribute
System.Management.Instrumentation::InstrumentationClassAttribute
System.Management.Instrumentation::InstrumentedAttribute
System.Management.Instrumentation::ManagedNameAttribute
System.Management.Instrumentation::ManagementEntityAttribute
System.Management.Instrumentation::ManagementMemberAttribute
System.Management.Instrumentation::ManagementNameAttribute
System.Management.Instrumentation::ManagementQualifierAttribute
System.Management.Instrumentation::ManagementReferenceAttribute
System.Management.Instrumentation::WmiConfigurationAttribute
System::MTAThreadAttribute
System::NonSerializedAttribute
System::ObsoleteAttribute
System::ParamArrayAttribute
System.Reflection::AssemblyAlgorithmIdAttribute
System.Reflection::AssemblyCompanyAttribute
System.Reflection::AssemblyConfigurationAttribute
System.Reflection::AssemblyCopyrightAttribute
System.Reflection::AssemblyCultureAttribute
System.Reflection::AssemblyDefaultAliasAttribute
System.Reflection::AssemblyDelaySignAttribute
System.Reflection::AssemblyDescriptionAttribute
System.Reflection::AssemblyFileVersionAttribute
System.Reflection::AssemblyFlagsAttribute
System.Reflection::AssemblyInformationalVersionAttribute
System.Reflection::AssemblyKeyFileAttribute
System.Reflection::AssemblyKeyNameAttribute
System.Reflection::AssemblyProductAttribute
System.Reflection::AssemblyTitleAttribute
System.Reflection::AssemblyTrademarkAttribute
System.Reflection::AssemblyVersionAttribute
System.Reflection::DefaultMemberAttribute
System.Reflection::ObfuscateAssemblyAttribute
System.Reflection::ObfuscationAttribute
System.Resources::NeutralResourcesLanguageAttribute
System.Resources::SatelliteContractVersionAttribute
System.Runtime.CompilerServices::AccessedThroughPropertyAttribute
System.Runtime.CompilerServices::CompilationRelaxationsAttribute
System.Runtime.CompilerServices::CompilerGeneratedAttribute
System.Runtime.CompilerServices::CompilerGlobalScopeAttribute
System.Runtime.CompilerServices::CustomConstantAttribute
System.Runtime.CompilerServices::DecimalConstantAttribute
System.Runtime.CompilerServices::DefaultDependencyAttribute
System.Runtime.CompilerServices::DependencyAttribute
System.Runtime.CompilerServices::DiscardableAttribute
System.Runtime.CompilerServices::ExtensionAttribute
System.Runtime.CompilerServices::FixedAddressValueTypeAttribute
System.Runtime.CompilerServices::FixedBufferAttribute
System.Runtime.CompilerServices::HasCopySemanticsAttribute
System.Runtime.CompilerServices::IndexerNameAttribute
System.Runtime.CompilerServices::InternalsVisibleToAttribute
System.Runtime.CompilerServices::MethodImplAttribute
System.Runtime.CompilerServices::NativeCppClassAttribute
System.Runtime.CompilerServices::RequiredAttributeAttribute
System.Runtime.CompilerServices::RuntimeCompatibilityAttribute
System.Runtime.CompilerServices::ScopelessEnumAttribute
System.Runtime.CompilerServices::SpecialNameAttribute
System.Runtime.CompilerServices::StringFreezingAttribute
System.Runtime.CompilerServices::SuppressIldasmAttribute
System.Runtime.CompilerServices::TypeForwardedToAttribute
System.Runtime.CompilerServices::UnsafeValueTypeAttribute
System.Runtime.ConstrainedExecution::PrePrepareMethodAttribute
System.Runtime.ConstrainedExecution::ReliabilityContractAttribute
System.Runtime.InteropServices::AutomationProxyAttribute
System.Runtime.InteropServices::BestFitMappingAttribute
System.Runtime.InteropServices::ClassInterfaceAttribute
System.Runtime.InteropServices::CoClassAttribute
System.Runtime.InteropServices::ComAliasNameAttribute
System.Runtime.InteropServices::ComCompatibleVersionAttribute
System.Runtime.InteropServices::ComConversionLossAttribute
System.Runtime.InteropServices::ComDefaultInterfaceAttribute
System.Runtime.InteropServices::ComEventInterfaceAttribute
System.Runtime.InteropServices::ComImportAttribute
System.Runtime.InteropServices::ComRegisterFunctionAttribute
System.Runtime.InteropServices::ComSourceInterfacesAttribute
System.Runtime.InteropServices::ComUnregisterFunctionAttribute
System.Runtime.InteropServices::ComVisibleAttribute
System.Runtime.InteropServices::DefaultCharSetAttribute
System.Runtime.InteropServices::DefaultParameterValueAttribute
System.Runtime.InteropServices::DispIdAttribute
System.Runtime.InteropServices::DllImportAttribute
System.Runtime.InteropServices::FieldOffsetAttribute
System.Runtime.InteropServices::GuidAttribute
System.Runtime.InteropServices::IDispatchImplAttribute
System.Runtime.InteropServices::ImportedFromTypeLibAttribute
System.Runtime.InteropServices::InAttribute
System.Runtime.InteropServices::InterfaceTypeAttribute
System.Runtime.InteropServices::LCIDConversionAttribute
System.Runtime.InteropServices::MarshalAsAttribute
System.Runtime.InteropServices::OptionalAttribute
System.Runtime.InteropServices::OutAttribute
System.Runtime.InteropServices::PreserveSigAttribute
System.Runtime.InteropServices::PrimaryInteropAssemblyAttribute
System.Runtime.InteropServices::ProgIdAttribute
System.Runtime.InteropServices::SetWin32ContextInIDispatchAttribute
System.Runtime.InteropServices::StructLayoutAttribute
System.Runtime.InteropServices::TypeLibFuncAttribute
System.Runtime.InteropServices::TypeLibImportClassAttribute
System.Runtime.InteropServices::TypeLibTypeAttribute
System.Runtime.InteropServices::TypeLibVarAttribute
System.Runtime.InteropServices::TypeLibVersionAttribute
System.Runtime.InteropServices::UnmanagedFunctionPointerAttribute
System.Runtime.Remoting.Contexts::ContextAttribute
System.Runtime.Remoting.Messaging::OneWayAttribute
System.Runtime.Remoting.Metadata::SoapAttribute
System.Runtime.Remoting.Proxies::ProxyAttribute
System.Runtime.Serialization::CollectionDataContractAttribute
System.Runtime.Serialization::ContractNamespaceAttribute
System.Runtime.Serialization::DataContractAttribute
System.Runtime.Serialization::DataMemberAttribute
System.Runtime.Serialization::EnumMemberAttribute
System.Runtime.Serialization::KnownTypeAttribute
System.Runtime.Serialization::OnDeserializedAttribute
System.Runtime.Serialization::OnDeserializingAttribute
System.Runtime.Serialization::OnSerializedAttribute
System.Runtime.Serialization::OnSerializingAttribute
System.Runtime.Serialization::OptionalFieldAttribute
System.Runtime.Versioning::ResourceConsumptionAttribute
System.Runtime.Versioning::ResourceExposureAttribute
System.Security::AllowPartiallyTrustedCallersAttribute
System.Security.Permissions::SecurityAttribute
System.Security::SecurityCriticalAttribute
System.Security::SecurityTransparentAttribute
System.Security::SecurityTreatAsSafeAttribute
System.Security::SuppressUnmanagedCodeSecurityAttribute
System.Security::UnverifiableCodeAttribute
System::SerializableAttribute
System.ServiceModel.Activation::AspNetCompatibilityRequirementsAttribute
System.ServiceModel::CallbackBehaviorAttribute
System.ServiceModel::DataContractFormatAttribute
System.ServiceModel::DeliveryRequirementsAttribute
System.ServiceModel.Description::DurableOperationAttribute
System.ServiceModel.Description::DurableServiceAttribute
System.ServiceModel::FaultContractAttribute
System.ServiceModel::MessageContractAttribute
System.ServiceModel::MessageContractMemberAttribute
System.ServiceModel::MessageParameterAttribute
System.ServiceModel::MessagePropertyAttribute
System.ServiceModel::OperationBehaviorAttribute
System.ServiceModel::OperationContractAttribute
System.ServiceModel::ServiceBehaviorAttribute
System.ServiceModel::ServiceContractAttribute
System.ServiceModel::ServiceKnownTypeAttribute
System.ServiceModel::TransactionFlowAttribute
System.ServiceModel.Web::WebGetAttribute
System.ServiceModel.Web::WebInvokeAttribute
System.ServiceModel::XmlSerializerFormatAttribute
System::STAThreadAttribute
System::ThreadStaticAttribute
System.Web.Compilation::BuildProviderAppliesToAttribute
System.Web.Compilation::DesignTimeResourceProviderFactoryAttribute
System.Web.Compilation::ExpressionEditorAttribute
System.Web.Compilation::ExpressionPrefixAttribute
System.Web.Profile::CustomProviderDataAttribute
System.Web.Profile::ProfileProviderAttribute
System.Web.Profile::SettingsAllowAnonymousAttribute
System.Web.Script.Serialization::ScriptIgnoreAttribute
System.Web.Script.Services::GenerateScriptTypeAttribute
System.Web.Script.Services::ScriptMethodAttribute
System.Web.Script.Services::ScriptServiceAttribute
System.Web.Services.Configuration::XmlFormatExtensionAttribute
System.Web.Services.Configuration::XmlFormatExtensionPointAttribute
System.Web.Services.Configuration::XmlFormatExtensionPrefixAttribute
System.Web.Services.Protocols::HttpMethodAttribute
System.Web.Services.Protocols::MatchAttribute
System.Web.Services.Protocols::SoapDocumentMethodAttribute
System.Web.Services.Protocols::SoapDocumentServiceAttribute
System.Web.Services.Protocols::SoapExtensionAttribute
System.Web.Services.Protocols::SoapHeaderAttribute
System.Web.Services.Protocols::SoapRpcMethodAttribute
System.Web.Services.Protocols::SoapRpcServiceAttribute
System.Web.Services::WebMethodAttribute
System.Web.Services::WebServiceAttribute
System.Web.Services::WebServiceBindingAttribute
System.Web.UI::ConstructorNeedsTagAttribute
System.Web.UI::ControlBuilderAttribute
System.Web.UI::ControlValuePropertyAttribute
System.Web.UI::DataBindingHandlerAttribute
System.Web.UI.Design::SupportsPreviewControlAttribute
System.Web.UI::FileLevelControlBuilderAttribute
System.Web.UI::FilterableAttribute
System.Web.UI::IDReferencePropertyAttribute
System.Web.UI.MobileControls::DesignerAdapterAttribute
System.Web.UI.MobileControls::DeviceOverridableAttribute
System.Web.UI.MobileControls::ObjectListTitleAttribute
System.Web.UI.MobileControls::PersistNameAttribute
System.Web.UI::NonVisualControlAttribute
System.Web.UI::ParseChildrenAttribute
System.Web.UI::PartialCachingAttribute
System.Web.UI::PersistChildrenAttribute
System.Web.UI::PersistenceModeAttribute
System.Web.UI::ScriptResourceAttribute
System.Web.UI::SupportsEventValidationAttribute
System.Web.UI::TagPrefixAttribute
System.Web.UI::TargetControlTypeAttribute
System.Web.UI::TemplateContainerAttribute
System.Web.UI::TemplateInstanceAttribute
System.Web.UI::ThemeableAttribute
System.Web.UI::ToolboxDataAttribute
System.Web.UI::UrlPropertyAttribute
System.Web.UI::ValidationPropertyAttribute
System.Web.UI::VerificationAttribute
System.Web.UI::ViewStateModeByIdAttribute
System.Web.UI.WebControls.WebParts::ConnectionConsumerAttribute
System.Web.UI.WebControls.WebParts::ConnectionProviderAttribute
System.Web.UI.WebControls.WebParts::PersonalizableAttribute
System.Web.UI.WebControls.WebParts::WebBrowsableAttribute
System.Web.UI.WebControls.WebParts::WebDescriptionAttribute
System.Web.UI.WebControls.WebParts::WebDisplayNameAttribute
System.Web.UI.WebControls.WebParts::WebPartTransformerAttribute
System.Web.UI::WebResourceAttribute
System.Windows::AttachedPropertyBrowsableAttribute
System.Windows.Data::ValueConversionAttribute
System.Windows.Forms::AxHost::ClsidAttribute
System.Windows.Forms::AxHost::TypeLibraryTimeStampAttribute
System.Windows.Forms::DataGridViewColumnDesignTimeVisibleAttribute
System.Windows.Forms.Design::ToolStripItemDesignerAvailabilityAttribute
System.Windows.Forms::DockingAttribute
System.Windows.Forms::RelatedImageListAttribute
System.Windows::LocalizabilityAttribute
System.Windows.Markup::ConstructorArgumentAttribute
System.Windows.Markup::ContentPropertyAttribute
System.Windows.Markup::ContentWrapperAttribute
System.Windows.Markup::DependsOnAttribute
System.Windows.Markup::DesignerSerializationOptionsAttribute
System.Windows.Markup::MarkupExtensionReturnTypeAttribute
System.Windows.Markup::RootNamespaceAttribute
System.Windows.Markup::RuntimeNamePropertyAttribute
System.Windows.Markup::TrimSurroundingWhitespaceAttribute
System.Windows.Markup::ValueSerializerAttribute
System.Windows.Markup::WhitespaceSignificantCollectionAttribute
System.Windows.Markup::XmlLangPropertyAttribute
System.Windows.Markup::XmlnsCompatibleWithAttribute
System.Windows.Markup::XmlnsDefinitionAttribute
System.Windows.Markup::XmlnsPrefixAttribute
System.Windows.Media::DisableDpiAwarenessAttribute
System.Windows.Resources::AssemblyAssociatedContentFileAttribute
System.Windows::StyleTypedPropertyAttribute
System.Windows::TemplatePartAttribute
System.Windows::ThemeInfoAttribute
System.Workflow.Activities::CorrelationAliasAttribute
System.Workflow.Activities::CorrelationInitializerAttribute
System.Workflow.Activities::CorrelationParameterAttribute
System.Workflow.Activities::ExternalDataExchangeAttribute
System.Workflow.Activities.Rules::RuleAttribute
System.Workflow.ComponentModel::AlternateFlowActivityAttribute
System.Workflow.ComponentModel.Compiler::ActivityCodeGeneratorAttribute
System.Workflow.ComponentModel.Compiler::ActivityValidatorAttribute
System.Workflow.ComponentModel.Compiler::AttributeInfoAttribute
System.Workflow.ComponentModel.Compiler::ValidationOptionAttribute
System.Workflow.ComponentModel.Compiler::WorkflowMarkupSourceAttribute
System.Workflow.ComponentModel.Design::ActivityDesignerThemeAttribute
System.Workflow.ComponentModel.Design::TypeFilterProviderAttribute
System.Workflow.ComponentModel::PersistOnCloseAttribute
System.Workflow.ComponentModel.Serialization::ConstructorArgumentAttribute
System.Workflow.ComponentModel.Serialization::ContentPropertyAttribute
System.Workflow.ComponentModel.Serialization::RuntimeNamePropertyAttribute
System.Workflow.ComponentModel.Serialization::XmlnsDefinitionAttribute
System.Workflow.ComponentModel.Serialization::XmlnsPrefixAttribute
System.Workflow.Runtime.DebugEngine::WorkflowDebuggerSteppingAttribute
System.Xml.Serialization::SoapAttributeAttribute
System.Xml.Serialization::SoapElementAttribute
System.Xml.Serialization::SoapEnumAttribute
System.Xml.Serialization::SoapIgnoreAttribute
System.Xml.Serialization::SoapIncludeAttribute
System.Xml.Serialization::SoapTypeAttribute
System.Xml.Serialization::XmlAnyAttributeAttribute
System.Xml.Serialization::XmlAnyElementAttribute
System.Xml.Serialization::XmlArrayAttribute
System.Xml.Serialization::XmlArrayItemAttribute
System.Xml.Serialization::XmlAttributeAttribute
System.Xml.Serialization::XmlChoiceIdentifierAttribute
System.Xml.Serialization::XmlElementAttribute
System.Xml.Serialization::XmlEnumAttribute
System.Xml.Serialization::XmlIgnoreAttribute
System.Xml.Serialization::XmlIncludeAttribute
System.Xml.Serialization::XmlNamespaceDeclarationsAttribute
System.Xml.Serialization::XmlRootAttribute
System.Xml.Serialization::XmlSchemaProviderAttribute
System.Xml.Serialization::XmlSerializerAssemblyAttribute
System.Xml.Serialization::XmlSerializerVersionAttribute
System.Xml.Serialization::XmlTextAttribute
System.Xml.Serialization::XmlTypeAttribute
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.