Share via


IPropertyBag2.LoadObject(String, UInt32, Object, IErrorLog) Method

Definition

Reads persistent properties from a property object.

public:
 void LoadObject(System::String ^ pstrName, System::UInt32 dwHint, System::Object ^ punkObject, Microsoft::VisualStudio::OLE::Interop::IErrorLog ^ pErrLog);
public:
 void LoadObject(Platform::String ^ pstrName, unsigned int dwHint, Platform::Object ^ punkObject, Microsoft::VisualStudio::OLE::Interop::IErrorLog ^ pErrLog);
void LoadObject(std::wstring const & pstrName, unsigned int dwHint, winrt::Windows::Foundation::IInspectable const & punkObject, Microsoft::VisualStudio::OLE::Interop::IErrorLog const & pErrLog);
public void LoadObject (string pstrName, uint dwHint, object punkObject, Microsoft.VisualStudio.OLE.Interop.IErrorLog pErrLog);
abstract member LoadObject : string * uint32 * obj * Microsoft.VisualStudio.OLE.Interop.IErrorLog -> unit
Public Sub LoadObject (pstrName As String, dwHint As UInteger, punkObject As Object, pErrLog As IErrorLog)

Parameters

pstrName
String

[in] The name of the property.

dwHint
UInt32

[in] An integer value that was retrieved by using GetPropertyInfo(UInt32, UInt32, PROPBAG2[], UInt32). This argument is optional and must be zero, if the value is not known or used.

punkObject
Object

[in] The address of the object's IUnknown interface. This argument cannot be NULL.

pErrLog
IErrorLog

[in] The address of an IErrorLog interface in which the property bag stores any errors that occur during the load. This argument can be NULL; in which case, the caller does not receive logging errors.

Applies to