Skip to main content
Version: 2025

stdole_StdPicture

Namespace: PPJ.Runtime.Com

Assembly: PPJ.Web.50 (5.0.0.0)

Wraps the standard OLE picture coclass for activation and SAL-compatible access.

public class stdole_StdPicture : stdole_Picture

Attach an appropriate COM object before accessing interface properties.

Example:

using PPJ.Runtime.Com;

using (var value = new stdole_StdPicture())
{
if (value.Create())
System.Console.WriteLine(value.IsDispatchValid());
}

Constructors

Instance member stdole_StdPicture()

Initializes a new instance of stdole_StdPicture.

Fields

NameTypeDescriptionValue
_CoClassCOMObjectThe activated OLE coclass instance used by this wrapper.

Methods

Instance member Create()

Creates and attaches the standard OLE picture object.

Returns: SalBoolean. True if activation succeeds; otherwise, false.

Instance member CreateEx(host)

Creates and attaches the standard OLE picture object on the specified host.

ParameterTypeDescription
hostSalStringThe host on which to activate the OLE class.

Returns: SalBoolean. True if activation succeeds; otherwise, false.

Instance member GetInterface(disp, iid)

Provides the translated interface-query compatibility entry point.

ParameterTypeDescription
dispSalObjectThe wrapper intended to receive the queried interface.
iidSalStringThe requested interface GUID.

Returns: SalBoolean. This implementation does not reach a normal return.

This overload currently calls itself recursively. Use the inherited SalObject.GetInterface method through a SalObject reference with a string interface identifier.

Instance member Init()

Creates and attaches the standard OLE picture object.

Returns: SalBoolean. True if activation succeeds; otherwise, false.

Instance member Release()

Releases the tracked interfaces and detaches the OLE object.

Returns: SalBoolean. True after detachment completes.