PPJ Web API
HomeCurrent IssuesDownloads
  • Welcome
  • Concepts
  • PPJ.Web.49
    • General
      • Sal
      • Sys
      • SalApplication
      • SalNamedProperties
      • SalWindow
      • WindowActionsEventArgs
      • SalXML
    • COM
      • SalCoClass
      • SalObject
      • SalOleErrorInfo
      • SalSafeArray
      • SalVariant
      • stdole_Font
      • stdole_Picture
      • stdole_StdFont
      • stdole_StdPicture
    • Controls
      • SalBackgroundText
      • SalCheckBox
      • SalComboBox
      • SalContext
      • SalCustomControl
      • SalDataField
        • DataType
      • SalFrame
      • SalGeneralWindow
      • SalGroupBox
      • SalGroupSeparator
      • SalHorizontalScrollBar
      • SalLine
      • SalListBox
      • SalMultilineField
      • SalNavigationBar
      • SalOptionButton
        • OptionButtonStyle
      • SalPicture
        • ImageStorage
      • SalPushbutton
      • SalRadioButton
      • SalTimer
      • SalTreeControl
        • SalTreeItem
      • SalUserControl
      • SalVerticalScrollBar
    • Forms
      • AccessoryType
      • SalDialogBox
      • SalForm
      • SalFormClientArea
      • SalFormStatusBar
      • SalFormTableWindow
      • SalFormToolBar
      • SalFormWindow
      • SalMDIWindow
      • SalRibbonBarBase
      • SalRibbonBarForm
      • SalRibbonBarMDI
    • Interfaces
      • ISalType
      • ISalAccessory
      • ISalControl
      • ISalEditControl
      • ISalListControl
      • ISalListItem
      • ISalMenu
      • ISalPictureControl
      • ISalRadioButton
      • ISalReport
      • ISalWindow
    • Menus
      • SalContextMenu
      • SalFormMainMenu
      • SalMenuItem
      • SalMenuSeparator
      • SalPopupMenu
      • SalWindowsMenu
    • QO
      • SalQuickTabs
      • SalQuickTabsDialog
      • SalQuickTabsForm
      • SalQuickTabsParent
      • SalQuickTabsParentDialog
      • SalQuickTabsParentForm
    • Sql
      • SalSqlBindVariables
      • SalSqlError
      • SalSqlHandle
      • SalSqlSessionHandle
      • Sql
      • SqlContext
      • SqlOra
      • WhenSqlError
    • Types
      • SalArray<T>
      • SalBinary
      • SalBoolean
      • SalDateTime
      • SalFileHandle
      • SalFunctionalClass
      • SalNumber
      • SalResource
      • SalString
      • SalStringContext
      • SalWindowHandle
  • PPJ.Web.Vis.49
    • General
      • Vis
      • VisTblEx
    • Controls
      • VisCalendar
      • VisCalendarDropDown
      • VisColorComboBox
      • VisColorListBox
      • VisComboBoxBase
      • VisDesktopListBox
      • VisDirListBox
      • VisDirTreeListBox
      • VisDriveComboBox
      • VisDriveListBox
      • VisDropDownBase
      • VisFileListBox
      • VisFontComboBox
      • VisFontListBox
      • VisFontNameComboBox
      • VisFontNameListBox
      • VisListBoxBase
      • VisListBoxExtension
      • VisListView
      • VisListViewDropDown
      • VisMeter
      • VisOutlineComboBox
      • VisOutlineListBox
      • VisPictureComboBox
      • VisPictureListBox
      • VisPoint
      • VisRadioListBox
      • VisRect
      • VisSize
      • VisSpinField
      • VisSplitter
      • VisSplitterWindow
        • Orientation
  • PPJ.Web.XSal.49
    • General
      • XSal
      • XSalScript
    • Controls
      • XSalFlatButton
      • XSalHSplitter
      • XSalSplitter
      • XSalToolbar
      • XSalToolbox
      • XSalVSplitter
Powered by GitBook
On this page
  • Constructors
  • SalObject()
  • SalObject(obj)
  • Properties
  • AutoErrorMode
  • AutoRelease
  • Value
  • Methods
  • Attach(obj)
  • Count()
  • CreateObject()
  • CreateObject(progid)
  • CreateObjectEx(host)
  • CreateObjectEx(progid, host)
  • Detach()
  • Dispose()
  • GetInterface(iface, iid)
  • GetLastError(err)
  • HandleException(e)
  • IsCollection()
  • IsDispatchValid()
  • MTSDisableCommit()
  • MTSEnableCommit()
  • MTSIsCallerInRole(role)
  • MTSIsInTransaction()
  • MTSIsSecurityEnabled()
  • MTSSetAbort()
  • MTSSetComplete()
  • Next(obj)
  • Reset()
  • Skip(nElems)
  • Inherited By
  1. PPJ.Web.49
  2. COM

SalObject

PPJ.Runtime.Com.SalObject

PreviousSalCoClassNextSalOleErrorInfo

Last updated 2 years ago

Namespace: PPJ.Runtime.Com

Assembly: PPJ.Web.49 (4.9.0.0)

Summary description for SalObject.

public class SalObject : SalFunctionalClass, IDisposable
Public Class SalObject
    Inherits SalFunctionalClass
    Implements IDisposable

Constructors

SalObject()

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

SalObject(obj)

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

Name
Type
Description

obj

Properties

AutoErrorMode

: Turns on/off automatic COM error handling.

AutoRelease

Methods

Attaches the object to this IDispatch.

Parameter
Type
Description

obj

get number of objects

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

Creates the com object from the progid.

Parameter
Type
Description

progid

Creates the com object on a remote host.

Parameter
Type
Description

host

Creates the com object on a remote host.

Parameter
Type
Description

progid

host

Releases the attached COM object.

Dispose object

Returns the requested com interface.

Parameter
Type
Description

iface

iid

Returns the last COM exception into a OleErrorInfo object.

Parameter
Type
Description

err

handle exception

Parameter
Type
Description

e

is collection

Checks whether the underlying COM object is valid.

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).

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).

Determines whether the caller is in the specified role.

Parameter
Type
Description

role

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

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).

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).

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).

next object

Parameter
Type
Description

obj

reset

skip element

Parameter
Type
Description

nElems

Inherited By

Name
Description

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

Value

: Returns/Sets the inner COM object instance

Attach(obj)

Returns: .

Count()

Returns: .

CreateObject()

Returns: .

CreateObject(progid)

Returns: .

CreateObjectEx(host)

Returns: .

CreateObjectEx(progid, host)

Returns: .

Detach()

Returns: .

Dispose()

GetInterface(iface, iid)

Returns: .

GetLastError(err)

Returns: .

HandleException(e)

Returns: .

IsCollection()

Returns: .

IsDispatchValid()

Returns: .

MTSDisableCommit()

MTSEnableCommit()

MTSIsCallerInRole(role)

Returns: .

MTSIsInTransaction()

Returns: . bOk

MTSIsSecurityEnabled()

Returns: . bOk

MTSSetAbort()

MTSSetComplete()

Next(obj)

Returns: .

Reset()

Returns: .

Skip(nElems)

Returns: .

Boolean
Object
Boolean
SalNumber
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
SalBoolean
Boolean
SalBoolean
Boolean
SalBoolean
Boolean
Boolean
SalBoolean
SalBoolean
SalBoolean
Object
SalObject
String
String
String
String
SalObject
String
SalOleErrorInfo
Exception
SalString
SalObject
SalNumber
stdole_Font
stdole_Picture
stdole_StdFont
stdole_StdPicture
Boolean