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
context
Type: Microsoft.Office.Server.ServerContextA ServerContext object that represents a Shared Service Provider context.
profile
Type: Microsoft.Office.Server.UserProfiles.UserProfileA UserProfile object that represents a user profile.
newOwner
Type: System.StringA string that contains the name of the owner of the user profile.