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: Int32The dispatch ID of the property for which to retrieve attributes.
pceltAttrs
Type: UInt32%The number of attribute type names in pbstrTypeNames.
ppbstrTypeNames
Type: IntPtrAn 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: IntPtrIf 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
- 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.