IPropertyBag2.GetPropertyInfo Method

Gets information for properties in a property bag without actually getting those properties.

Namespace:  Microsoft.VisualStudio.OLE.Interop
Assembly:  Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)

Syntax

'宣言
Sub GetPropertyInfo ( _
    iProperty As UInteger, _
    cProperties As UInteger, _
    <OutAttribute> pPropBag As PROPBAG2(), _
    <OutAttribute> ByRef pcProperties As UInteger _
)
'使用
Dim instance As IPropertyBag2
Dim iProperty As UInteger
Dim cProperties As UInteger
Dim pPropBag As PROPBAG2()
Dim pcProperties As UInteger

instance.GetPropertyInfo(iProperty, cProperties, _
    pPropBag, pcProperties)
void GetPropertyInfo(
    uint iProperty,
    uint cProperties,
    PROPBAG2[] pPropBag,
    out uint pcProperties
)
void GetPropertyInfo(
    [InAttribute] unsigned int iProperty, 
    [InAttribute] unsigned int cProperties, 
    [OutAttribute] array<PROPBAG2>^ pPropBag, 
    [OutAttribute] unsigned int% pcProperties
)
function GetPropertyInfo(
    iProperty : uint, 
    cProperties : uint, 
    pPropBag : PROPBAG2[], 
    pcProperties : uint
)

Parameters

  • iProperty
    Type: System.UInt32

    [in] The zero-based index of the first property for which information is requested.

  • cProperties
    Type: System.UInt32

    [in] The number of properties for which to get information. This argument specifies the number of array elements in pPropBag.

  • pPropBag
    Type: []

    [out] The address of an array of PROPBAG2 structures that receive the information for the properties. There must be at least cProperties elements in this array. This argument cannot be NULL.

  • pcProperties
    Type: System.UInt32%

    [out] The number of properties for which information was retrieved. This argument cannot be NULL.

Permissions

See Also

Reference

IPropertyBag2 Interface

IPropertyBag2 Members

Microsoft.VisualStudio.OLE.Interop Namespace