DescriptionResourceAttribute Constructor (String, Type)
Initializes a new instance of the DescriptionResourceAttribute class by using the specified description key and type.
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 ( _
descriptionKey As String, _
type As Type _
)
public DescriptionResourceAttribute(
string descriptionKey,
Type type
)
public:
DescriptionResourceAttribute(
String^ descriptionKey,
Type^ type
)
new :
descriptionKey:string *
type:Type -> DescriptionResourceAttribute
public function DescriptionResourceAttribute(
descriptionKey : String,
type : Type
)
Parameters
- descriptionKey
Type: System.String
The key of the description resource entry in the specified resource.
- type
Type: System.Type
The type that identifies the assembly that contains the resource.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | type is nulla null reference (Nothing in Visual Basic), or descriptionKey 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
DescriptionResourceAttribute Class