Partager via


ProvideDesignerLoaderAttribute Class

Place this attribute on a class that is derived from DesignerLoader to associate the class with a particular language service or file extension.

Namespace:  Microsoft.VisualStudio.Shell.Design.Serialization
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Déclaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True)> _
Public NotInheritable Class ProvideDesignerLoaderAttribute _
    Inherits RegistrationAttribute
'Utilisation
Dim instance As ProvideDesignerLoaderAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class ProvideDesignerLoaderAttribute : RegistrationAttribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true)]
public ref class ProvideDesignerLoaderAttribute sealed : public RegistrationAttribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)>]
type ProvideDesignerLoaderAttribute =  
    class
        inherit RegistrationAttribute
    end
public final class ProvideDesignerLoaderAttribute extends RegistrationAttribute

Remarks

If the class is associated with a language service, the loader will be available to all files that share the same language service. If the class is associated with a file extension the loader will be available only to files with the extension. The choice of language and file extension is determined by the AttributeScope enumeration. The following values are allowed:

AttributeScope

ScopeData

Language

language service name

File

String (extension, including ".")

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.RegistrationAttribute
      Microsoft.VisualStudio.Shell.Design.Serialization.ProvideDesignerLoaderAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ProvideDesignerLoaderAttribute Members

Microsoft.VisualStudio.Shell.Design.Serialization Namespace