Share via


IVSMDPerPropertyBrowsing.GetPropertyAttributes Method

Definition

Gets the list of attributes for the object.

public:
 void GetPropertyAttributes(int dispid, [Runtime::InteropServices::Out] System::UInt32 % pceltAttrs, IntPtr ppbstrTypeNames, IntPtr ppvarAttrValues);
public void GetPropertyAttributes (int dispid, out uint pceltAttrs, IntPtr ppbstrTypeNames, IntPtr ppvarAttrValues);
abstract member GetPropertyAttributes : int * uint32 * nativeint * nativeint -> unit
Public Sub GetPropertyAttributes (dispid As Integer, ByRef pceltAttrs As UInteger, ppbstrTypeNames As IntPtr, ppvarAttrValues As IntPtr)

Parameters

dispid
Int32

The dispid of the property to retrieve attributes

pceltAttrs
UInt32

the number of attribute type names in ppbstrTypeNames

ppbstrTypeNames
IntPtr

nativeint

Attribute type names, such as System.ComponentModel.BrowsableAttribute, or System.ComponentModel.DescriptionAttribute. This can be the name of any type that derives from System.Attribute. The array is callee allocated and will be caller freed using FreeCoTaskMem(IntPtr). Strings themselves should be freed with FreeBSTR(IntPtr). It can also be a static instance name such as System.ComponentModel.BrowsableAttribute.No, which will cause the initializer value to be ignored.

ppvarAttrValues
IntPtr

nativeint

An array of variants to be used to initialize the given attributes. If the attributes have a ctor that takes a parameter, the given argument will be used to iniitalize the attribute. If the initializer is NULL, VT_EMPTY or VT_NULL, the default ctor will be called. Variants will be caller freed individually by pInvoking VariantClear. The array must be freed calling FreeCoTaskMem(IntPtr).

Applies to