다음을 통해 공유


IPropertyBag2.Write Method

Saves properties into the property bag.

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

Syntax

‘선언
Sub Write ( _
    cProperties As UInteger, _
    pPropBag As PROPBAG2(), _
    ByRef pvarValue As Object _
)
‘사용 방법
Dim instance As IPropertyBag2
Dim cProperties As UInteger
Dim pPropBag As PROPBAG2()
Dim pvarValue As Object

instance.Write(cProperties, pPropBag, _
    pvarValue)
void Write(
    uint cProperties,
    PROPBAG2[] pPropBag,
    ref Object pvarValue
)
void Write(
    [InAttribute] unsigned int cProperties, 
    [InAttribute] array<PROPBAG2>^ pPropBag, 
    [InAttribute] Object^% pvarValue
)
abstract Write : 
        cProperties:uint32 * 
        pPropBag:PROPBAG2[] * 
        pvarValue:Object byref -> unit 
function Write(
    cProperties : uint, 
    pPropBag : PROPBAG2[], 
    pvarValue : Object
)

Parameters

  • cProperties
    Type: System.UInt32
    [in] The number of properties to read. This argument specifies the number of elements in the arrays at pPropBag, pvarValue, and phrError.
  • pPropBag
    Type: array<Microsoft.VisualStudio.OLE.Interop.PROPBAG2[]
    [in[ An array of PROPBAG2 structures that specify the properties that are requested. The vt and pstrName members of these structures must be filled in before this method can be called. The dwHint member of these structures is optional. There must be at least cProperties elements in this array. This argument cannot be NULL.
  • pvarValue
    Type: System.Object%
    [out] An array of VARIANT structures that receive the property values. The caller does not have to initialize these structures before calling Read. The Readmethod fills the type field and the value field in these structures before it returns. There must be at least cProperties elements in this array. The calling application frees any allocations contained in these structures. This argument cannot be NULL.

.NET Framework Security

See Also

Reference

IPropertyBag2 Interface

IPropertyBag2 Members

Microsoft.VisualStudio.OLE.Interop Namespace