Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Initializes a new instance of the DisplayNameResourceAttribute class by using the specified display name key and type.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Public Sub New ( _
displayNameKey As String, _
type As Type _
)
public DisplayNameResourceAttribute(
string displayNameKey,
Type type
)
public:
DisplayNameResourceAttribute(
String^ displayNameKey,
Type^ type
)
new :
displayNameKey:string *
type:Type -> DisplayNameResourceAttribute
public function DisplayNameResourceAttribute(
displayNameKey : String,
type : Type
)
Parameters
displayNameKey
Type: StringThe key of the display-name resource entry in the specified resource.
type
Type: TypeThe type that identifies the assembly that contains the resource.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | type is nulla null reference (Nothing in Visual Basic), or 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
DisplayNameResourceAttribute Class