ElementTypeDescriptor.GetCategory Method
Returns a localized string for the category of a domain property.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
声明
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
- propertyDescriptor
Type: Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
The descriptor for the domain property for which to get the category.
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
- 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.