Accessing Tool Environment Information

This section describes how to access the tool environment information. This information includes the current contact and the list of workspace members.

The ISPWApplication object, which is provided by the ISPWTool object, provides access to the current contact in the CurrentContact property. The current contact describes the user who is running SharePoint Workspace on the local system. For example, your add-in code can use information about the current contact to set default values for certain fields. To find the workspace role of the current contact, you must read the workspace members and find the corresponding member.

Information about workspace members is available from the ISPWWorkspace object. The ISPWMember interface provides the Role and ISPWContact information for all workspace members. These include the current contact. Your add-in code can use information about workspace members for operations such as populating drop-down lists.

Note

The Add-in API provides access to contact information only for members of the workspace. It does not provide contact information to personal contacts of the current user who are not also members of the workspace.