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
propertyDescriptor
Type: Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptorThe 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.
See Also
Reference
Microsoft.VisualStudio.Modeling.Design Namespace
Change History
Date |
History |
Reason |
---|---|---|
July 2008 |
Added topic. |
Content bug fix. |