How do I create a text similar to the message user info field format string?

hadi tag asked on May 4, 2015 14:29

hi

How do I create a text similar to the message user info field format string?

message user info field format string :

<info><ip>::1</ip><agent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36</agent></info>

Is there a method to do this?

Thanks ..

Recent Answers


Brenden Kehren answered on May 4, 2015 14:34

Do you want the specific text within the XML or to just create the XML itself?

0 votesVote for this answer Mark as a Correct answer

hadi tag answered on May 4, 2015 14:41

yes I want the specific text within the XML.

I want create a text that exactly like the format of the text in the messageUserInfo field (from Board_Message table) and insert to the Board_Message table.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 4, 2015 15:43

Are you using the API? If not, you should check out the Message Boards API documentation and use that as it's the best way to go.

0 votesVote for this answer Mark as a Correct answer

hadi tag answered on May 4, 2015 16:04

No

I wanted to know what is the method that now allows to do it? I'm used to it.

0 votesVote for this answer Mark as a Correct answer

Charles Matvchuk answered on May 4, 2015 16:43

Please look at the CMS.MessageBoards Namespace.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 4, 2015 16:46

Create a new BoardMessageInfo object, set the properties, then use the BoardMessageInfoProvider.SetInfo(BoardMessageInfo) method to insert the message info. The SetInfo() method will either insert or update the object.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.