Comment on a document.
Namespace:
IpernityNET.IpernityObjectsAssembly: IpernityNET (in IpernityNET.dll) Version: 0.3.1.0 (0.3.1.0)
Syntax
C# |
---|
public Comment CommentsAdd( string content, bool preview ) |
Visual Basic (Declaration) |
---|
Public Function CommentsAdd ( _ content As String, _ preview As Boolean _ ) As Comment |
Visual C++ |
---|
public: Comment^ CommentsAdd( String^ content, bool preview ) |
Parameters
- content
- Type: System..::.String
The comment text. (Some HTML tags are accepted)
- preview
- Type: System..::.Boolean
Set this flag to true to preview the comment. The comment will not be added.
Return Value
The added CommentRemarks
This method encapsulates doc.comments.add
This method requires "write" permission on docs.
Exceptions
Exception | Condition |
---|---|
IpernityNET..::.IpernityException | Throwed when Ipernity returned an error |
IpernityNET.IpernityObjects..::.ObjectNotConfiguredException | Throwed when an Ipernity object has not been configured. |