Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initializes a new instance of the CategoryResourceAttribute class by using the specified category name key and type.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaration
Public Sub New ( _
displayNameKey As String, _
type As Type _
)
public CategoryResourceAttribute(
string displayNameKey,
Type type
)
public:
CategoryResourceAttribute(
String^ displayNameKey,
Type^ type
)
new :
displayNameKey:string *
type:Type -> CategoryResourceAttribute
public function CategoryResourceAttribute(
displayNameKey : String,
type : Type
)
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.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | displayNameKey is nulla null reference (Nothing in Visual Basic) or the empty string (""). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
CategoryResourceAttribute Class