Partager via


ElementTypeDescriptor.GetCategory Method

Returns a localized string for the category of a domain property.

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

Syntax

'Declaration
Protected Friend Overridable Function GetCategory ( _
    propertyDescriptor As ElementPropertyDescriptor _
) As String
protected internal virtual string GetCategory(
    ElementPropertyDescriptor propertyDescriptor
)
protected public:
virtual String^ GetCategory(
    ElementPropertyDescriptor^ propertyDescriptor
)
abstract GetCategory : 
        propertyDescriptor:ElementPropertyDescriptor -> string  
override GetCategory : 
        propertyDescriptor:ElementPropertyDescriptor -> string
function GetCategory(
    propertyDescriptor : ElementPropertyDescriptor
) : String

Parameters

Return Value

Type: System.String
A localized string for the category of a domain property.

Exceptions

Exception Condition
ArgumentNullException

propertyDescriptor is nulla null reference (Nothing in Visual Basic).

Remarks

When an owner is specified when a domain property descriptor is created, then the Category property of the property descriptor uses the category returned by the GetCategory method of the owner. If this method returns nulla null reference (Nothing in Visual Basic), then the property descriptor uses the metadata of the described property to determine the category of the property.

.NET Framework Security

See Also

Reference

ElementTypeDescriptor Class

Microsoft.VisualStudio.Modeling.Design Namespace

ElementPropertyDescriptor