M-Files API 23.11.13135.0
PromoteObject Method
VaultExternalObjectOperations Object : PromoteObject Method
The unmanaged object to be promoted.
The new properties for the object version.
The ACL enforcing mode.
The ACL provided by the user. Can be NULL if the enforcing mode is not set to "MFACLEnforcingModeProvided".
Description
Promotes an unmanaged object to a managed one.
Syntax
Visual Basic
Public Function PromoteObject( _
   ByVal ObjVer As ObjVer, _
   ByVal PropertyValues As PropertyValues, _
   Optional ByVal ACLEnforcingMode As MFACLEnforcingMode = MFACLEnforcingModeAutomatic, _
   Optional ByVal pACLProvidedCBN As AccessControlList = 0 _
) As ObjectVersionAndProperties
Parameters
ObjVer
The unmanaged object to be promoted.
PropertyValues
The new properties for the object version.
ACLEnforcingMode
ValueDescription
MFACLEnforcingModeAutomaticThe ACL previously stored for the object is used as the provided ACL.
MFACLEnforcingModeNoneThe object ACL remains untouched.
MFACLEnforcingModeProvidedThe ACL provided by the caller is used.
MFACLEnforcingModeResetToDefaultThe ACL calculated from the properties is used as the provided ACL.
The ACL enforcing mode.
pACLProvidedCBN
The ACL provided by the user. Can be NULL if the enforcing mode is not set to "MFACLEnforcingModeProvided".
Remarks
This method is available only if M-Files API is used in the server interface mode.
See Also

VaultExternalObjectOperations Object  | VaultExternalObjectOperations Members