IPropertyBag2.Write(UInt32, PROPBAG2[], Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Saves properties into the property bag.
public:
void Write(System::UInt32 cProperties, cli::array <Microsoft::VisualStudio::OLE::Interop::PROPBAG2> ^ pPropBag, System::Object ^ % pvarValue);
void Write(unsigned int cProperties, std::Array <Microsoft::VisualStudio::OLE::Interop::PROPBAG2> const & pPropBag, winrt::Windows::Foundation::IInspectable const & & pvarValue);
public void Write (uint cProperties, Microsoft.VisualStudio.OLE.Interop.PROPBAG2[] pPropBag, ref object pvarValue);
abstract member Write : uint32 * Microsoft.VisualStudio.OLE.Interop.PROPBAG2[] * obj -> unit
Public Sub Write (cProperties As UInteger, pPropBag As PROPBAG2(), ByRef pvarValue As Object)
Parameters
- cProperties
- UInt32
[in] The number of properties to read. This argument specifies the number of elements in the arrays at pPropBag
, pvarValue
, and phrError
.
- pPropBag
- 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
- Object
[out] An array of VARIANT structures that receive the property values. The caller does not have to initialize these structures before calling Read(UInt32, PROPBAG2[], IErrorLog, Object, Int32). The Read(UInt32, PROPBAG2[], IErrorLog, Object, Int32)method 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.