Share via


IVSMDPerPropertyBrowsing.GetPropertyAttributes Method

Gets the list of attributes for the object.

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

Syntax

'Declaration
Sub GetPropertyAttributes ( _
    dispid As Integer, _
    <OutAttribute> ByRef pceltAttrs As UInteger, _
    <OutAttribute> ppbstrTypeNames As IntPtr, _
    <OutAttribute> ppvarAttrValues As IntPtr _
)
void GetPropertyAttributes(
    int dispid,
    out uint pceltAttrs,
    IntPtr ppbstrTypeNames,
    IntPtr ppvarAttrValues
)
void GetPropertyAttributes(
    int dispid, 
    [OutAttribute] unsigned int% pceltAttrs, 
    [OutAttribute] IntPtr ppbstrTypeNames, 
    [OutAttribute] IntPtr ppvarAttrValues
)
abstract GetPropertyAttributes : 
        dispid:int * 
        pceltAttrs:uint32 byref * 
        ppbstrTypeNames:IntPtr byref * 
        ppvarAttrValues:IntPtr byref -> unit
function GetPropertyAttributes(
    dispid : int, 
    pceltAttrs : uint, 
    ppbstrTypeNames : IntPtr, 
    ppvarAttrValues : IntPtr
)

Parameters

  • dispid
    Type: Int32

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

  • pceltAttrs
    Type: UInt32%

    The number of attribute type names in pbstrTypeNames.

  • ppbstrTypeNames
    Type: 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: 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.

Remarks

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.

.NET Framework Security

See Also

Reference

IVSMDPerPropertyBrowsing Interface

Microsoft.VisualStudio.Designer.Interfaces Namespace