UserProfileService.UpdateColleaguePrivacy Method
Updates a colleague privacy policy level for the specified account name.
Namespace: [UserProfileService Web service]
Web service reference: http://Site/_vti_bin/UserProfileService.asmx
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/UpdateColleaguePrivacy", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", _
ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub UpdateColleaguePrivacy ( _
accountName As String, _
colleagueAccountName As String, _
newPrivacy As Privacy _
)
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim colleagueAccountName As String
Dim newPrivacy As Privacy
instance.UpdateColleaguePrivacy(accountName, _
colleagueAccountName, newPrivacy)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/UpdateColleaguePrivacy", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",
ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void UpdateColleaguePrivacy(
string accountName,
string colleagueAccountName,
Privacy newPrivacy
)
Parameters
accountName
Type: System.StringThe account name of the user.
colleagueAccountName
Type: System.StringThe account name of the colleague.
newPrivacy
Type: [UserProfileService Web service].PrivacyThe new privacy policy level.
Exceptions
Exception | Condition |
---|---|
SoapException | The policy cannot be changed. |
Remarks
This method updates the privacy policy level with the new value for the colleague specified by the colleagueAccountName parameter of the user specified by the accountName parameter.