ElementTypeDescriptor.GetCategory Method

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

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

Syntax

'Declaration
Protected Friend Overridable Function GetCategory ( _
    propertyDescriptor As ElementPropertyDescriptor _
) As String
'Usage
Dim propertyDescriptor As ElementPropertyDescriptor 
Dim returnValue As String 

returnValue = Me.GetCategory(propertyDescriptor)
protected internal virtual string GetCategory(
    ElementPropertyDescriptor propertyDescriptor
)
protected public:
virtual String^ GetCategory(
    ElementPropertyDescriptor^ propertyDescriptor
)
protected internal 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

ElementTypeDescriptor Members

Microsoft.VisualStudio.Modeling.Design Namespace

ElementPropertyDescriptor

Change History

Date

History

Reason

July 2008

Added topic.

Content bug fix.