ProvideViewAdapterAttribute Constructor (Type, AttributeScope, Object)

Initializes a new for the specified base type and scope.

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

Syntax

'宣言
Public Sub New ( _
    baseType As Type, _
    scope As AttributeScope, _
    scopeData As Object _
)
'使用
Dim baseType As Type
Dim scope As AttributeScope
Dim scopeData As Object

Dim instance As New ProvideViewAdapterAttribute(baseType, _
    scope, scopeData)
public ProvideViewAdapterAttribute(
    Type baseType,
    AttributeScope scope,
    Object scopeData
)
public:
ProvideViewAdapterAttribute(
    Type^ baseType, 
    AttributeScope scope, 
    Object^ scopeData
)
public function ProvideViewAdapterAttribute(
    baseType : Type, 
    scope : AttributeScope, 
    scopeData : Object
)

Parameters

  • baseType
    Type: System.Type

    The type that this view adapter should handle.

  • scopeData
    Type: System.Object

    Data associated with the scope of the attribute.

Remarks

This constructor checks that the scope value is valid for the scopeData value. If scope is Global, scopeData must be a null reference (Nothing in Visual Basic). If scope is Language, scopeData must be a string value (indicating the name of the language). If scope is File, scopeData must be a string starting with "." (indicating the file extension).

Permissions

See Also

Reference

ProvideViewAdapterAttribute Class

ProvideViewAdapterAttribute Members

ProvideViewAdapterAttribute Overload

Microsoft.VisualStudio.Shell.Design Namespace