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.
- C#
- VB.NET
public class stdole_StdPicture : stdole_Picture
Public Class stdole_StdPicture
Inherits 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
stdole_StdPicture()
Initializes a new instance of stdole_StdPicture.
Fields
| Name | Type | Description | Value |
|---|---|---|---|
| _CoClass | COMObject | The activated OLE coclass instance used by this wrapper. |
Methods
Create()
Creates and attaches the standard OLE picture object.
Returns: SalBoolean. True if activation succeeds; otherwise, false.
CreateEx(host)
Creates and attaches the standard OLE picture object on the specified host.
| Parameter | Type | Description |
|---|---|---|
| host | SalString | The host on which to activate the OLE class. |
Returns: SalBoolean. True if activation succeeds; otherwise, false.
GetInterface(disp, iid)
Provides the translated interface-query compatibility entry point.
| Parameter | Type | Description |
|---|---|---|
| disp | SalObject | The wrapper intended to receive the queried interface. |
| iid | SalString | The 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.
Init()
Creates and attaches the standard OLE picture object.
Returns: SalBoolean. True if activation succeeds; otherwise, false.
Release()
Releases the tracked interfaces and detaches the OLE object.
Returns: SalBoolean. True after detachment completes.