共用方式為


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

  • title
    Type: System.String

    The title of the Web page whose URL is being tagged.

  • isPrivate
    Type: System.Boolean

    A 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

See Also

Reference

SocialTagManager Class

SocialTagManager Members

AddTag Overload

Microsoft.Office.Server.SocialData Namespace