DatabaseClassAddDocumentForAssociate Method |
Add an existing file to the document archive on behalf of some associate, returning a new document object for the file.
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntaxpublic virtual SODocument AddDocumentForAssociate(
string i_FilePath,
bool i_RemoveOriginal,
bool i_OpenCreatedDocument,
int i_AssociateId,
int i_ContactId = 0,
int i_PersonId = 0,
int i_ProjectId = 0
)
Public Overridable Function AddDocumentForAssociate (
i_FilePath As String,
i_RemoveOriginal As Boolean,
i_OpenCreatedDocument As Boolean,
i_AssociateId As Integer,
Optional i_ContactId As Integer = 0,
Optional i_PersonId As Integer = 0,
Optional i_ProjectId As Integer = 0
) As SODocument
Dim instance As DatabaseClass
Dim i_FilePath As String
Dim i_RemoveOriginal As Boolean
Dim i_OpenCreatedDocument As Boolean
Dim i_AssociateId As Integer
Dim i_ContactId As Integer
Dim i_PersonId As Integer
Dim i_ProjectId As Integer
Dim returnValue As SODocument
returnValue = instance.AddDocumentForAssociate(i_FilePath,
i_RemoveOriginal, i_OpenCreatedDocument,
i_AssociateId, i_ContactId, i_PersonId,
i_ProjectId)
public:
virtual SODocument^ AddDocumentForAssociate(
[InAttribute] String^ i_FilePath,
[InAttribute] bool i_RemoveOriginal,
[InAttribute] bool i_OpenCreatedDocument,
[InAttribute] int i_AssociateId,
[InAttribute] int i_ContactId = 0,
[InAttribute] int i_PersonId = 0,
[InAttribute] int i_ProjectId = 0
)
Parameters
- i_FilePath
- Type: SystemString
- i_RemoveOriginal
- Type: SystemBoolean
- i_OpenCreatedDocument
- Type: SystemBoolean
- i_AssociateId
- Type: SystemInt32
- i_ContactId (Optional)
- Type: SystemInt32
- i_PersonId (Optional)
- Type: SystemInt32
- i_ProjectId (Optional)
- Type: SystemInt32
Return Value
Type:
SODocumentImplements
IDatabaseAddDocumentForAssociate(String, Boolean, Boolean, Int32, Int32, Int32, Int32)
See Also