CreateMemberWithPropertiesEx Method (Restricted)
The CreateMemberWithPropertiesEx method creates a new member in a domain with additional credentials and properties.
public void CreateMemberWithPropertiesEx(string memberName, string password, bool resetPassword, string sq, string sa, bool resetSQ, string alternateEmail, Property[] properties)
Parameters
memberName — String with fully qualified member name (e.g. someone@example.com).
password — String with password for the new member.
resetPassword — Boolean (true or false) whether member needs to change the Windows Live password the first time the member signs in to Windows Live.
sq — Secret Question. String containing the question that Windows Live support people will ask the end user to validate ownership of the account.
sa — Secret Answer. String containing the answer to the secret question.
resetSq — Boolean (true or false) whether member needs to change the secret question and secret answer the first time the member signs in to Windows Live.
alternateEmail — Alternate email address used to send the member’s new password if the member forgets the password and has requested that it be sent.
properties — Array of member properties to set. These must be valid Windows Live ID properties and values. See Appendix A: Windows Live ID Property List for valid properties.
Return Value
None.
Remarks
Call GetMemberNameState before calling CreateMemberWithPropertiesEx to verify that this name can be registered in this domain. The password must meet the Windows Live ID password standards (6–16 characters, no non–English characters). If you delete a name and immediately add that name again, you will need to change the length of password to have CreateMemberWithPropertiesEx succeed (Windows Live services enforces this to prevent DOS attacks).
Maximum length for the member name (e.g. someone in someone@example.com) is 64 characters.
See the Remarks section of the CreateMemberWithProperties Method (Restricted) topic for example code for setting the properties array.
Note Calling this method requires Microsoft approval. Contact us at dsupport@microsoft.com if you are a partner and want to apply for permission.
Related Topics
Send comments about this topic to Microsoft
Build date: 2/15/2011
