Fetchtrustees, Fetchtrustees 170, Oc.fetchtrustees – Kofax DM API User Manual
Page 190
170 C
HAPTER
4
FetchTrustees
FetchTrustees
Use this method to fetch trustees from the DM Server.
Syntax
PCDDocObject.FetchTrustees()
Returns
Returns an
HRESULT
to receive the result of the call.
S_OK
indicates
success. Languages such as JavaScript, Visual Basic, and VBScript
return this as a function value.
Example
The following example illustrates how you can use the FetchTrustees
method when managing trustee rights on your document objects.
.
.
.
Private Sub cmdAddTrustees_Click()
'This subroutine demonstrates adding trustees
'to a document. You can add trustees in two
'ways: You can use the SetTrustee method that
'DocObject supports, or you can use the
'AddTrustee method that the PCDTrusteeList
'supports. This example demonstrates the first
'method.
'Use the following flags when adding trustees:
'0 = Unknown (Let the server figure it out.)
'1 = Group
'2 = User
'Create the PCDDocObject. Note that late
'binding is used to create the PCDDocObject
'because the HasRight method will bomb if
'early binding is used.
lstResultSet.Clear
Dim objDOC As Object