IVSMDPerPropertyBrowsing::GetPropertyAttributes Method (Int32, UInt32, IntPtr, IntPtr)

 

Gets the list of attributes for the object.

Namespace:   Microsoft.VisualStudio.Designer.Interfaces
Assembly:  Microsoft.VisualStudio.Designer.Interfaces (in Microsoft.VisualStudio.Designer.Interfaces.dll)

void GetPropertyAttributes(
	int dispid,
	[OutAttribute] unsigned int% pceltAttrs,
	IntPtr ppbstrTypeNames,
	IntPtr ppvarAttrValues
)

Parameters

dispid
Type: System::Int32

The dispatch ID of the property for which to retrieve attributes.

pceltAttrs
Type: System::UInt32

The number of attribute type names in pbstrTypeNames.

ppbstrTypeNames
Type: System::IntPtr

An array of variants to be used to initialize the given attributes. If the attributes have a constructor that takes a parameter, the given attribute will be used to initialize the attribute.

ppvarAttrValues
Type: System::IntPtr

If the initializer is NULL, VT_EMPTY or VT_NULL, the default ctor will be called. Variants will be caller freed individually using variant clear, then CoTaskMemFree on the array itself.

pbstrTypeNames are attribute type names, such as System.ComponentModel.BrowsableAttribute or System.ComponentModel.DescriptionAttribute. A name can be the name of any type that derives from Attribute. The array is callee-llocated and callee-freed using CoTaskMemFree. The strings themselves are freed with SysFreeString.

If a type name is a static instance name, such as System.ComponentModel.BrowsableAttribute.No, the initializer value is ignored.

Return to top
Show: