NuxeoClient.Client.DocumentFromPath C# (CSharp) Method

DocumentFromPath() public method

Creates a new instance of a Nuxeo Document.
public DocumentFromPath ( string path ) : Document
path string The remote path to the document.
return Document
        public Document DocumentFromPath(string path)
        {
            Document doc = new Document().SetClient(this);
            doc.Path = path;
            return doc;
        }

Usage Example

        public BusinessObjects()
        {
            client = new Client(Config.ServerUrl());
            client.AddDefaultSchema("dublincore");

            // populate
            document = (Document)client.DocumentFromPath("/").Post(new Document
            {
                Type = "Folder",
                Name = "bofolder",
                Properties = new Properties { { "dc:title", "Just a folder" } }
            }).Result;
        }
All Usage Examples Of NuxeoClient.Client::DocumentFromPath