Partager via


CategoryResourceAttribute Constructor (String, Type, String)

Initializes a new instance of the CategoryResourceAttribute class by using the specified category name key, type, and resources name.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Déclaration
Public Sub New ( _
    displayNameKey As String, _
    type As Type, _
    resourceName As String _
)
public CategoryResourceAttribute(
    string displayNameKey,
    Type type,
    string resourceName
)
public:
CategoryResourceAttribute(
    String^ displayNameKey, 
    Type^ type, 
    String^ resourceName
)
new : 
        displayNameKey:string * 
        type:Type * 
        resourceName:string -> CategoryResourceAttribute
public function CategoryResourceAttribute(
    displayNameKey : String, 
    type : Type, 
    resourceName : String
)

Parameters

  • displayNameKey
    Type: System.String
    The key of the category name resource entry in the specified resource.
  • type
    Type: System.Type
    The type that identifies the assembly that contains the resource.
  • resourceName
    Type: System.String
    The root name of the resource.

Exceptions

Exception Condition
ArgumentNullException

displayNameKey or resourceName is nulla null reference (Nothing in Visual Basic) or the empty string ("").

.NET Framework Security

See Also

Reference

CategoryResourceAttribute Class

CategoryResourceAttribute Overload

Microsoft.VisualStudio.Modeling.Design Namespace