Share via


PropertyGridObject.ICustomTypeDescriptor.GetAttributes Method

Definition

Returns a collection of custom attributes for the property grid.

 virtual System::ComponentModel::AttributeCollection ^ System.ComponentModel.ICustomTypeDescriptor.GetAttributes() = System::ComponentModel::ICustomTypeDescriptor::GetAttributes;
System.ComponentModel.AttributeCollection ICustomTypeDescriptor.GetAttributes ();
Function GetAttributes () As AttributeCollection Implements ICustomTypeDescriptor.GetAttributes

Returns

A AttributeCollection object that contains the attributes for the property grid.

Implements

Examples

The following example duplicates the <xref:Microsoft.Web.Management.Client.PropertyGridObject.System.ComponentModel.ICustomTypeDescriptor.GetAttributes%2A> method.

AttributeCollection MyGetAttributes() {
    return TypeDescriptor.GetAttributes(this, true);
} 

Applies to