다음을 통해 공유


DescriptionResourceAttribute Constructor (String, Type, String)

Initializes a new instance of the DescriptionResourceAttribute class by using the specified description 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

‘선언
Public Sub New ( _
    descriptionKey As String, _
    type As Type, _
    resourceName As String _
)
public DescriptionResourceAttribute(
    string descriptionKey,
    Type type,
    string resourceName
)
public:
DescriptionResourceAttribute(
    String^ descriptionKey, 
    Type^ type, 
    String^ resourceName
)
new : 
        descriptionKey:string * 
        type:Type * 
        resourceName:string -> DescriptionResourceAttribute
public function DescriptionResourceAttribute(
    descriptionKey : String, 
    type : Type, 
    resourceName : String
)

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.
  • resourceName
    Type: System.String
    The root name of the resource.

Exceptions

Exception Condition
ArgumentNullException

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

.NET Framework Security

See Also

Reference

DescriptionResourceAttribute Class

DescriptionResourceAttribute Overload

Microsoft.VisualStudio.Modeling.Design Namespace