PublicAPI.Docflow.Folder.GetMyDocumentFolder ELMA API Documentation
Get the "My Documents" folder of a certain user
 
 
Syntax

public MyDocumentFolder GetMyDocumentFolder(
	User user
)

Parameters

user
Type: User
User. Object. Access path: PublicAPI.Portal.Security.User

Return Value

Type: MyDocumentFolder
"My Documents" folder
Examples

//load the user by ID 
var user = PublicAPI.Portal.Security.User.Load(3);

//get the "My Documents" folder 
var folder = PublicAPI.Docflow.Document.GetMyDocumentFolder(user);

//folder - obtained "My Documents" folder of a certain user 

//WARNING!! The function result cannot be null, if you do not have access to the folder, or the folder has not been created
See Also