Partager via


ProvideDesignerMetadataAttribute Constructor

Initializes a new instance of ProvideDesignerMetadataAttribute, associating a new metadata Type with the current Type.

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

Syntax

'Déclaration
Public Sub New ( _
    runtimeType As Type, _
    metadataType As Type _
)
'Utilisation
Dim runtimeType As Type
Dim metadataType As Type

Dim instance As New ProvideDesignerMetadataAttribute(runtimeType, _
    metadataType)
public ProvideDesignerMetadataAttribute(
    Type runtimeType,
    Type metadataType
)
public:
ProvideDesignerMetadataAttribute(
    Type^ runtimeType, 
    Type^ metadataType
)
new : 
        runtimeType:Type * 
        metadataType:Type -> ProvideDesignerMetadataAttribute
public function ProvideDesignerMetadataAttribute(
    runtimeType : Type, 
    metadataType : Type
)

Parameters

  • metadataType
    Type: System.Type
    The Type containing the metadata to be added to an existing type.

Remarks

The scope of the metadata modifications provided by ProvideDesignerMetadataAttribute depends on the value of the instance's IsGlobal property. It can be

  • Global -- for all new instances of runtimeType

  • Local -- pertaining only to instances of the runtimeType created on a design surface provided by the current VSPackage.

.NET Framework Security

See Also

Reference

ProvideDesignerMetadataAttribute Class

ProvideDesignerMetadataAttribute Members

Microsoft.VisualStudio.Shell.Design Namespace