Compartilhar via


AssemblerAttribute Class

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Specifies what assembler type to use to build a concrete type in a polymorphic provider hierarchy for the type described by the configuration object this attribute is bound to. This class cannot be inherited. The specified type must implement the IAssembler<TObject, TConfiguration> interface.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder
Assembly:  Microsoft.Practices.EnterpriseLibrary.Common (in Microsoft.Practices.EnterpriseLibrary.Common.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False, Inherited := False)> _
PublicNotInheritableClassAssemblerAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
publicsealedclassAssemblerAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false, Inherited = false)]
publicref classAssemblerAttributesealed : public Attribute
publicfinalclass AssemblerAttribute extends Attribute

Remarks

The attribute is used on configuration objects to specify the build process create a provider based on the information in the configuration object. The attribute is used by the AssemblerBasedCustomFactory<TObject, TConfiguration> implementation of the ICustomFactory interface, that provides a generic way to build polymorphic providers.

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerAttribute

See Also

AssemblerAttribute Members

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.