Share via


MySiteProfileHandler.SetMySiteOwner method (ServerContext, UserProfile, String)

NOTE: This API is now obsolete.

Sets the owner of the specified user profile in the specified Shared Service Provider context.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
<ObsoleteAttribute("use SetMySiteOwner(UserProfile profile, string newOwner) instead.")> _
Public Overridable Sub SetMySiteOwner ( _
    context As ServerContext, _
    profile As UserProfile, _
    newOwner As String _
)
'Usage
Dim instance As MySiteProfileHandler
Dim context As ServerContext
Dim profile As UserProfile
Dim newOwner As String

instance.SetMySiteOwner(context, profile, _
    newOwner)
[ObsoleteAttribute("use SetMySiteOwner(UserProfile profile, string newOwner) instead.")]
public virtual void SetMySiteOwner(
    ServerContext context,
    UserProfile profile,
    string newOwner
)

Parameters

  • newOwner
    Type: System.String

    A string that contains the name of the owner of the user profile.

See also

Reference

MySiteProfileHandler class

MySiteProfileHandler members

SetMySiteOwner overload

Microsoft.Office.Server.UserProfiles namespace