SAapi Object : SetUserProperty Method |
The property number you wish to change. You can use the following constants or their values:
The property value. If you are setting the user password, it will automatically be encrypted and sent to the server.
When you get the password back from the server, in GetUser for example, you will see the encrypted value.
Visual Basic |
---|
Public Function SetUserProperty( _ ByVal UserName As String, _ ByVal PropertyNumber As Long, _ ByVal PropertyValue As String _ ) As String |
The property number you wish to change. You can use the following constants or their values:
The property value. If you are setting the user password, it will automatically be encrypted and sent to the server.
When you get the password back from the server, in GetUser for example, you will see the encrypted value.
On success, returns an XML string containing the user properties.
Private Sub SetUserProperty() 'The following Visual Basic example sets the value of ' an existing user's full name. Dim sReply As String On Error GoTo err sReply = m_SAClient.SetUserProperty("alex_td", _ SA_USER_FULL_NAME, "Alex Dashevsky") MsgBox sReply Exit Sub err: MsgBox "Program failed:" + err.Description End Sub