Article object
- GetArticleProperty(string propertyName) -> Safe method to get value for the property name
- PropertyName: Name of property
- Usage example: var value = article.GetArticleProperty(“Title”);
- AddUpdateArticleProperty(string name, string value) -> Add new or update existing property value
- Name: Name of the property
- Value: the value to set for the property.
- Usage example: article.AddUpdateArticleProperty (“Title”, “This is a title”);
StructureArticle object
- GetStructureProperty(string propertyName) -> Safe method to get value for the property name
- PropertyName: Name of property
- Usage example: var value = article.GetStructureProperty(“Title”);
- AddUpdateStructureProperty(string name, string value) -> Add new or update existing property value
- Name: Name of the property
- Value: the value to set for the property.
- Usage example: article.AddUpdateStructureProperty (“Title”, “This is a title”);
ArticleService
- UpdateVaultProperties(long articleId, Dictionary<string, string> properties) -> Commit updated Vault/Source properties to database to make change persistent.
- ArticleId: database id of Article object
- Properties: Properties Dictionary with properties
- Usage example: ArticleService.UpdateVaultProperties(article.Id, article.ArticleProperties);
- UpdateArticleProperties(long articleId, Dictionary<string, string> properties) -> Commit updated Article properties to database to make change persistent.
- ArticleId: database id of Article object
- Properties: Properties Dictionary with properties
- Usage example: ArticleService.UpdateArticleProperties(article.Id, article.ArticleProperties);
- UpdateStructureProperties(long articleId, Dictionary<string, string> properties) -> Commit updated Article properties to database to make change persistent.
- ArticleId: database id of StructureArticle object
- Properties: Properties Dictionary with properties
- Usage example: ArticleService.UpdateStructureProperties(article.Id,article.StructureProperties);
- GetDocumentData(long documentId) -> Returns a byte[] with the document related to the Document property in the DocumentArticle object
- DocumentId: database id of the Document object
- Usage example: ArticleService.GetDocumentData (article.Document.Id);