SharedWorkspaceMembers.Add(String, String, String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a member to the list of members in a shared workspace.
public Microsoft.Office.Core.SharedWorkspaceMember Add (string Email, string DomainName, string DisplayName, object Role);
abstract member Add : string * string * string * obj -> Microsoft.Office.Core.SharedWorkspaceMember
Public Function Add (Email As String, DomainName As String, DisplayName As String, Optional Role As Object) As SharedWorkspaceMember
Parameters
- String
Required String. The new member's email address in the format user@domain.com
. Raises an error if the user is not a valid candidate for membership in the shared workspace.
- DomainName
- String
Required String. The new member's Windows user name in the format domain\user
.
- DisplayName
- String
Required String. The friendly name to display for the new member.
- Role
- Object
Optional String. An optional role that determines the tasks the new member can accomplish in the shared workspace; for example, "Contributor". An invalid role name raises an error.