Skip to main content
Version: 2023

SalObject

Namespace: PPJ.Runtime.Com

Assembly: PPJ.Web.49 (4.9.0.0)

Summary description for SalObject.

public class SalObject : SalFunctionalClass, IDisposable

Constructors​

Instance memberSalObject()​

Construct a new null SalObject. This class cannot be used as second-base class.

Instance memberSalObject(obj)​

Constructs a new SalObject and wraps the specified com object instance.

NameTypeDescription
objObject

Properties​

Static memberAutoErrorMode​

Boolean: Turns on/off automatic COM error handling.

Instance memberAutoRelease​

Boolean: Turns on/off auto-release mode. When true, the runtime will force the release of the underlying COM object.

Instance memberValue​

Object: Returns/Sets the inner COM object instance

Methods​

Instance memberAttach(obj)​

Attaches the object to this IDispatch.

ParameterTypeDescription
objSalObject

Returns: Boolean.

Instance memberCount()​

get number of objects

Returns: SalNumber.

Instance memberCreateObject()​

Inspects the current class for the _CoClass member and creates the inner COM object and assigns it to the inner _Interface member.

Returns: Boolean.

Instance memberCreateObject(progid)​

Creates the com object from the progid.

ParameterTypeDescription
progidString

Returns: Boolean.

Instance memberCreateObjectEx(host)​

Creates the com object on a remote host.

ParameterTypeDescription
hostString

Returns: Boolean.

Instance memberCreateObjectEx(progid, host)​

Creates the com object on a remote host.

ParameterTypeDescription
progidString
hostString

Returns: Boolean.

Instance memberDetach()​

Releases the attached COM object.

Returns: Boolean.

Instance memberDispose()​

Dispose object

Instance memberGetInterface(iface, iid)​

Returns the requested com interface.

ParameterTypeDescription
ifaceSalObject
iidString

Returns: Boolean.

Instance memberGetLastError(err)​

Returns the last COM exception into a OleErrorInfo object.

ParameterTypeDescription
errSalOleErrorInfo

Returns: SalBoolean.

Instance memberHandleException(e)​

handle exception

ParameterTypeDescription
eException

Returns: Boolean.

Instance memberIsCollection()​

is collection

Returns: SalBoolean.

Instance memberIsDispatchValid()​

Checks whether the underlying COM object is valid.

Returns: Boolean.

Static memberMTSDisableCommit()​

Indicates that the object's transactional updates cannot be committed in the present time until SalMTSEnableCommit() or SalMTSSetComplete() is called. For non-MTS components the SalMTSDisableCommit() will fail (returns false).

Static memberMTSEnableCommit()​

Indicates that the object’s work is not necessarily done, but that its transactional updates can be committed in their current form (stateful object). EnableCommit is the default state when an object is activated. For non-MTS components the SalMTSEnableCommit() will fail (returns false).

Static memberMTSIsCallerInRole(role)​

Determines whether the caller is in the specified role.

ParameterTypeDescription
roleSalString

Returns: SalBoolean.

Static memberMTSIsInTransaction()​

This method checks if the component is executing in the transaction context. For non-MTS components the SalMTSIsInTransaction() will fail (returns false).

Returns: Boolean. bOk

Static memberMTSIsSecurityEnabled()​

This method checks for the security status. If the object is running in the client's process, there is no security checking and SalMTSIsSecurityEnabled will always return false. For non-MTS components the SalMTSIsSecurityEnabled() will fail (returnS false).

Returns: Boolean. bOk

Static memberMTSSetAbort()​

Indicates that the object’s work can never be committed. The entire transaction is aborted. The object is deactivated upon return from the method. For non-MTS components the SalMTSSetAbort() will fail (returnS false).

Static memberMTSSetComplete()​

Indicates that the object has successfully completed its work for the transaction. The object is deactivated upon return from the method that first entered the context (stateless object). For non-MTS components the SalMTSSetComplete() will fail (returns false).

Instance memberNext(obj)​

next object

ParameterTypeDescription
objSalObject

Returns: SalBoolean.

Instance memberReset()​

reset

Returns: SalBoolean.

Instance memberSkip(nElems)​

skip element

ParameterTypeDescription
nElemsSalNumber

Returns: SalBoolean.

Inherited By​

NameDescription
stdole_Font
stdole_Picture
stdole_StdFont
stdole_StdPicture