SocialTagManager.AddTag Method (Uri, Term, String, Boolean)
Creates a SocialTag with the specified Uri, Term, String and Boolean.
Namespace: Microsoft.Office.Server.SocialData
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Function AddTag ( _
url As Uri, _
term As Term, _
title As String, _
isPrivate As Boolean _
) As SocialTag
'Usage
Dim instance As SocialTagManager
Dim url As Uri
Dim term As Term
Dim title As String
Dim isPrivate As Boolean
Dim returnValue As SocialTag
returnValue = instance.AddTag(url, term, _
title, isPrivate)
public SocialTag AddTag(
Uri url,
Term term,
string title,
bool isPrivate
)
Parameters
- url
Type: System.Uri
term
Type: Microsoft.SharePoint.Taxonomy.TermA Term object. The term must exist in the taxonomy that you are using.
title
Type: System.StringThe title of the Web page whose URL is being tagged.
isPrivate
Type: System.BooleanA Boolean value indicating whether the social tag is private. If it is not private, the tag will be visible to users other than the owner.
Return Value
Type: Microsoft.Office.Server.SocialData.SocialTag